Point2I

Engine/source/math/mPoint2.h

2D integer point

More...

Public Attributes

x 

X position.

y 

Y position.

Public Functions

Create an uninitialized point.

Copy constructor.

Point2I(S32 in_x, S32 in_y)

Create point from two co-ordinates.

Convolve this point by parameter.

bool

Is this point at the origin? (No epsilon used)

len()

Get the length of the point.

Get the length-squared of the point.

neg()

Invert sign of point's co-ordinates.

set(S32 in_x, S32 in_y)

Set (x,y) position.

Store greater co-ordinates from parameter in this point.

Store lesser co-ordinates from parameter in this point.

zero()

Zero all values.

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.