Point3I

Engine/source/math/mPoint3.h

3D integer point

More...

Public Attributes

x 

X co-ordinate.

y 

Y co-ordinate.

z 

Z co-ordinate.

Public Static Attributes

Public Functions

Create an uninitialized point.

Copy constructor.

Point3I(S32 in_x, S32 in_y, S32 in_z)

Create a point from co-ordinates.

Point3I(S32 xyz)

Initializes all elements to the same value.

Convolve by parameter.

bool

Check for point at origin. (No epsilon.)

len()

Get length.

neg()

Invert co-ordinate's signs.

set(S32 in_x, S32 in_y, S32 in_z)

Set co-ordinates.

set(S32 xyz)

Initializes all elements to the same value.

Store greater co-ordinates in this point.

Store lesser co-ordinates in this point.

zero()

Zero all values.

Detailed Description

3D integer point

Uses S32 internally.

Public Attributes

S32 x 

X co-ordinate.

S32 y 

Y co-ordinate.

S32 z 

Z co-ordinate.

Public Static Attributes

const Point3I One 
const Point3I Zero 

Public Functions

Point3I()

Create an uninitialized point.

Point3I(const Point3I & )

Copy constructor.

Point3I(S32 in_x, S32 in_y, S32 in_z)

Create a point from co-ordinates.

Point3I(S32 xyz)

Initializes all elements to the same value.

convolve(const Point3I & )

Convolve by parameter.

isZero()

Check for point at origin. (No epsilon.)

len()

Get length.

neg()

Invert co-ordinate's signs.

operator const S32*()

operator S32*()

operator!=(const Point3I & )

operator*(S32 )

operator*=(S32 )

operator+(const Point3I & )

operator+=(const Point3I & )

operator-()

operator-(const Point3I & )

operator-=(const Point3I & )

operator/(S32 )

operator/=(S32 )

operator==(const Point3I & )

set(S32 in_x, S32 in_y, S32 in_z)

Set co-ordinates.

set(S32 xyz)

Initializes all elements to the same value.

setMax(const Point3I & )

Store greater co-ordinates in this point.

setMin(const Point3I & )

Store lesser co-ordinates in this point.

zero()

Zero all values.