|
Torque2D Reference
|
#include <mPoint.h>
Public Member Functions | |
| Point4F () | |
| Create an unitialized point. | |
| Point4F (const Point4F &) | |
| Point4F (const F32 _x, const F32 _y, const F32 _z, const F32 _w) | |
| Create point from coordinates. | |
| void | set (const F32 _x, const F32 _y, const F32 _z, const F32 _w) |
| Set point's coordinates. | |
| void | interpolate (const Point4F &_pt1, const Point4F &_pt2, const F32 _factor) |
| operator F32 * () | |
| operator F32 * () const | |
Public Attributes | |
| F32 | x |
| X co-ordinate. | |
| F32 | y |
| Y co-ordinate. | |
| F32 | z |
| Z co-ordinate. | |
| F32 | w |
| W co-ordinate. | |
Static Public Attributes | |
| static const Point4F | One |
| static const Point4F | Zero |
4D floating-point point.
Uses F32 internally.
Useful for representing quaternions and other 4d beasties.
|
inline |
Create an unitialized point.
|
inline |
Create point from coordinates.
Interpolate from _pt1 to _pt2, based on _factor.
| _pt1 | Starting point. |
| _pt2 | Ending point. |
| _factor | Interpolation factor (0.0 .. 1.0). |
|
inline |
|
inline |
|
inline |
Set point's coordinates.
|
static |
| F32 w |
W co-ordinate.
| F32 x |
X co-ordinate.
| F32 y |
Y co-ordinate.
| F32 z |
Z co-ordinate.
|
static |