Point4F

Engine/source/math/mPoint4.h

4D floating-point point.

More...

Public Attributes

w 

W co-ordinate.

x 

X co-ordinate.

y 

Y co-ordinate.

z 

Z co-ordinate.

Public Static Attributes

Public Functions

Create an uninitialized point.

Copy constructor.

Point4F(F32 _x, F32 _y, F32 _z, F32 _w)

Create point from coordinates.

interpolate(const Point4F & _pt1, const Point4F & _pt2, F32 _factor)

Interpolate from _pt1 to _pt2, based on _factor.

len()
set(F32 _x, F32 _y, F32 _z, F32 _w)

Set point's coordinates.

Detailed Description

4D floating-point point.

Uses F32 internally.

Useful for representing quaternions and other 4d beasties.

Public Attributes

F32 w 

W co-ordinate.

F32 x 

X co-ordinate.

F32 y 

Y co-ordinate.

F32 z 

Z co-ordinate.

Public Static Attributes

const Point4F One 
const Point4F Zero 

Public Functions

Point4F()

Create an uninitialized point.

Point4F(const Point4F & )

Copy constructor.

Point4F(F32 _x, F32 _y, F32 _z, F32 _w)

Create point from coordinates.

asPoint3F()

interpolate(const Point4F & _pt1, const Point4F & _pt2, F32 _factor)

Interpolate from _pt1 to _pt2, based on _factor.

Parameters:

_pt1

Starting point.

_pt2

Ending point.

_factor

Interpolation factor (0.0 .. 1.0).

len()

operator const F32*()

operator F32*()

operator*(const Point4F & )

operator*(F32 )

operator*=(const Point4F & )

operator+(const Point4F & )

operator+=(const Point4F & )

operator-(const Point4F & )

operator/(F32 )

operator=(const Point3F & )

operator=(const Point4F & )

set(F32 _x, F32 _y, F32 _z, F32 _w)

Set point's coordinates.

zero()