Package | Description |
---|---|
com.google.gwt.touch.client |
Modifier and Type | Method and Description |
---|---|
Point |
Point.div(Point c)
Divide this point
Point by specified point and return the result. |
Point |
Momentum.State.getInitialPosition()
Get the initial position when the momentum took over.
|
Point |
Momentum.State.getInitialVelocity()
Get the initial velocity in pixels per millisecond when the momentum took
over.
|
Point |
Momentum.State.getPosition()
Get the current position.
|
Point |
Momentum.State.getVelocity()
Get the current velocity in pixels per millisecond.
|
Point |
Point.minus(Point c)
Subtract the specified
Point from this point and return the result. |
Point |
Point.mult(Point c)
Multiple this point
Point by specified point and return the result. |
Point |
Point.plus(Point c)
Add the specified
Point to this point and return the result. |
Modifier and Type | Method and Description |
---|---|
Momentum.State |
DefaultMomentum.createState(Point initialPosition,
Point initialVelocity) |
Momentum.State |
Momentum.createState(Point initialPosition,
Point initialVelocity)
Create a
Momentum.State instance. |
Point |
Point.div(Point c)
Divide this point
Point by specified point and return the result. |
Point |
Point.minus(Point c)
Subtract the specified
Point from this point and return the result. |
Point |
Point.mult(Point c)
Multiple this point
Point by specified point and return the result. |
Point |
Point.plus(Point c)
Add the specified
Point to this point and return the result. |
void |
Momentum.State.setPosition(Point position)
Set the current position.
|
void |
Momentum.State.setVelocity(Point velocity)
Get the current velocity in pixels per millisecond.
|
Constructor and Description |
---|
Point(Point c) |
State(Point initialPosition,
Point initialVelocity)
Construct a new
Momentum.State . |
Copyright © 2018. All rights reserved.