Point2I
2D integer point
Public Functions
Point2I()
Create an uninitialized point.
bool
isZero()
Is this point at the origin? (No epsilon used)
Get the length-squared of the point.
bool
operator!=(const Point2I & )
Point2I &
operator*=(const Point2I & )
Point2I &
Point2I &
operator+=(const Point2I & )
Point2I &
operator-=(const Point2I & )
Point2I &
operator/=(const Point2I & )
Point2I &
bool
operator==(const Point2I & )
Detailed Description
2D integer point
Uses S32 internally.
Public Attributes
S32 x
X position.
S32 y
Y position.
Public Static Attributes
const Point2I Max
const Point2I Min
const Point2I One
const Point2I Zero
Public Functions
Point2I()
Create an uninitialized point.
Point2I(const Point2I & )
Copy constructor.
Point2I(S32 in_x, S32 in_y)
Create point from two co-ordinates.
convolve(const Point2I & )
Convolve this point by parameter.
isZero()
Is this point at the origin? (No epsilon used)
len()
Get the length of the point.
lenSquared()
Get the length-squared of the point.
neg()
Invert sign of point's co-ordinates.
operator const S32*()
operator S32*()
operator!=(const Point2I & )
operator*(const Point2I & )
operator*(S32 )
operator*=(const Point2I & )
operator*=(S32 )
operator+(const Point2I & )
operator+=(const Point2I & )
operator-()
operator-(const Point2I & )
operator-=(const Point2I & )
operator/(const Point2I & )
operator/(S32 )
operator/=(const Point2I & )
operator/=(S32 )
operator==(const Point2I & )
set(S32 in_x, S32 in_y)
Set (x,y) position.
setMax(const Point2I & )
Store greater co-ordinates from parameter in this point.
setMin(const Point2I & )
Store lesser co-ordinates from parameter in this point.
zero()
Zero all values.