Removed Methods
|
void add(PointF )
|
Add v's coordinates to the point's |
float crossProduct(PointF, PointF)
|
Returns the cross product of a and b, treating them as 2D vectors |
PointF difference(PointF, PointF)
|
Returns a new point whose coordinates are the difference between a's and b's (a - b) |
float distance(PointF, PointF)
|
Returns the euclidian distance between a and b |
float dotProduct(PointF, PointF)
|
Returns the dot product of a and b, treating them as 2D vectors |
boolean normalize()
|
Set the point (vector) to be unit-length in the same direction as it
currently is, and return its old length. |
void rotateCCW()
|
Rotate the point counter-clockwise by 90 degrees, writing the answer back into the point. |
void rotateCW()
|
Rotate the point clockwise by 90 degrees, writing the answer back into the point. |
void scale(float )
|
Scale the point's coordinates by scale, writing the answer into dst. |
void set(int, int)
|
Set the point's X and Y coordinates by automatically promoting (x,y) to float values. |
boolean setLength(float )
|
Scale the point to have the specified length, and return that
length. |
boolean setLength(float, float, float)
|
Set the point to have the specified length in the same direction as (x,y),
and return the old length of (x,y). |
boolean setUnit(float, float)
|
Set the point (vector) to be unit-length in the same direction as the
x,y params, and return their old length. |
void subtract(PointF )
|
Subtract v's coordinates from the point's |
PointF sum(PointF, PointF)
|
Returns a new point whose coordinates are the sum of a's and b's (a + b) |