Removed Methods
|
void add(Point )
|
Add v's coordinates to the point's |
float crossProduct(Point, Point)
|
Returns the cross product of a and b, treating them as 2D vectors |
Point difference(Point, Point)
|
Returns a new point whose coordinates are the difference between a's and b's (a - b) |
float distance(Point, Point)
|
Returns the euclidian distance between a and b |
float dotProduct(Point, Point)
|
Returns the dot product of a and b, treating them as 2D vectors |
float length(float, float)
|
Returns the euclidian distance from (0,0) to (x,y) |
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 subtract(Point )
|
Subtract v's coordinates from the point's |
Point sum(Point, Point)
|
Returns a new point whose coordinates are the sum of a's and b's (a + b) |