Torque2D Reference
|
#include <mPoint.h>
Public Member Functions | |
Point2D () | |
Create uninitialized point. More... | |
Point2D (const Point2D &) | |
Copy constructor. More... | |
Point2D (const F64 _x, const F64 _y) | |
Create point from coordinates. More... | |
void | set (const F64 _x, const F64 _y) |
Set point's coordinates. More... | |
void | setMin (const Point2D &) |
Store lesser co-ordinates. More... | |
void | setMax (const Point2D &) |
Store greater co-ordinates. More... | |
void | interpolate (const Point2D &a, const Point2D &b, const F64 c) |
operator F64 * () | |
operator F64 * () const | |
bool | isZero () const |
F64 | len () const |
F64 | lenSquared () const |
void | neg () |
void | normalize () |
void | normalize (F64 val) |
void | convolve (const Point2D &) |
void | convolveInverse (const Point2D &) |
bool | operator== (const Point2D &) const |
bool | operator!= (const Point2D &) const |
Point2D | operator+ (const Point2D &) const |
Point2D | operator- (const Point2D &) const |
Point2D & | operator+= (const Point2D &) |
Point2D & | operator-= (const Point2D &) |
Point2D | operator* (const F64) const |
Point2D | operator/ (const F64) const |
Point2D & | operator*= (const F64) |
Point2D & | operator/= (const F64) |
Point2D | operator- () const |
Public Attributes | |
F64 | x |
X co-ordinate. More... | |
F64 | y |
Y co-ordinate. More... | |
2D high-precision point.
Uses F64 internally.
|
inline |
Create uninitialized point.
|
inline |
Create point from coordinates.
|
inline |
|
inline |
Interpolate from a to b, based on c.
a | Starting point. |
b | Ending point. |
c | Interpolation factor (0.0 .. 1.0). |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Set point's coordinates.
|
inline |
Store greater co-ordinates.
|
inline |
Store lesser co-ordinates.
F64 x |
X co-ordinate.
F64 y |
Y co-ordinate.