Torque2D Reference
|
#include <mPoint.h>
Public Member Functions | |
Point2I () | |
Create an uninitialized point. More... | |
Point2I (const Point2I &) | |
Copy constructor. More... | |
Point2I (const S32 in_x, const S32 in_y) | |
Create point from two co-ordinates. More... | |
void | set (const S32 in_x, const S32 in_y) |
Set (x,y) position. More... | |
void | setMin (const Point2I &) |
Store lesser co-ordinates from parameter in this point. More... | |
void | setMax (const Point2I &) |
Store greater co-ordinates from parameter in this point. More... | |
void | neg () |
Invert sign of point's co-ordinates. More... | |
void | convolve (const Point2I &) |
Convolve this point by parameter. More... | |
bool | isZero () const |
Is this point at the origin? (No epsilon used) More... | |
F32 | len () const |
Get the length of the point. More... | |
bool | operator== (const Point2I &) const |
bool | operator!= (const Point2I &) const |
Point2I | operator+ (const Point2I &) const |
Point2I | operator- (const Point2I &) const |
Point2I & | operator+= (const Point2I &) |
Point2I & | operator-= (const Point2I &) |
Point2I | operator* (const S32) const |
Point2I & | operator*= (const S32) |
Point2I | operator/ (const S32) const |
Point2I & | operator/= (const S32) |
Point2I | operator- () const |
Public Attributes | |
S32 | x |
X position. More... | |
S32 | y |
Y position. More... | |
2D integer point
Uses S32 internally.
|
inline |
Create an uninitialized point.
|
inline |
Create point from two co-ordinates.
|
inline |
Convolve this point by parameter.
|
inline |
Is this point at the origin? (No epsilon used)
|
inline |
Get the length of the point.
|
inline |
Invert sign of point's co-ordinates.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Set (x,y) position.
|
inline |
Store greater co-ordinates from parameter in this point.
|
inline |
Store lesser co-ordinates from parameter in this point.
S32 x |
X position.
S32 y |
Y position.