|
Public Methods |
| | Point () |
| | Default ctor.
|
| | Point (float x2, float y2) |
| | Constructor allowing for initialization.
|
| void | init (float x2, float y2) |
| | Reinitializes the Point.
|
| float | distFromOrigin () const |
| | Returns the distance from the origin, or Point( 0.0f, 0.0f ).
|
| float | distTo (const Point &other) const |
| | Returns the distance between this Point and the given Point.
|
| float | thetaTo (const Point &other) const |
| | Finds angle between a vector on the positive x axis from this Point and the line segment from this Point to the given Point.
|
| bool | operator< (const Point &rhs) const |
Public Attributes |
| float | x |
| float | y |
Note: This class was brought in from another project Jason has done.