2D floating-point point.
More...
#include <mPoint.h>
◆ Point2F() [1/3]
Create uninitialized point.
◆ Point2F() [2/3]
◆ Point2F() [3/3]
| Point2F |
( |
const F32 |
_x, |
|
|
const F32 |
_y |
|
) |
| |
|
inline |
Create point from co-ordinates.
◆ convolve()
◆ convolveInverse()
| void convolveInverse |
( |
const Point2F & |
c | ) |
|
|
inline |
Inversely convolute by parameter. (ie, divide)
◆ interpolate()
| void interpolate |
( |
const Point2F & |
a, |
|
|
const Point2F & |
b, |
|
|
const F32 |
c |
|
) |
| |
|
inline |
Interpolate from a to b, based on c.
- Parameters
-
| a | Starting point. |
| b | Ending point. |
| c | Interpolation factor (0.0 .. 1.0). |
◆ isZero()
Check for zero coordinates. (No epsilon.)
◆ len()
◆ lenSquared()
Get squared length (one sqrt less than len()).
◆ neg()
Invert signs of co-ordinates.
◆ normalize() [1/2]
◆ normalize() [2/2]
| void normalize |
( |
F32 |
val | ) |
|
|
inline |
Normalize, scaling by val.
◆ operator F32 *() [1/2]
◆ operator F32 *() [2/2]
◆ operator!=()
| bool operator!= |
( |
const Point2F & |
_test | ) |
const |
|
inline |
◆ operator*()
| Point2F operator* |
( |
const F32 |
_mul | ) |
const |
|
inline |
◆ operator*=()
| Point2F & operator*= |
( |
const F32 |
_mul | ) |
|
|
inline |
◆ operator+()
◆ operator+=()
◆ operator-() [1/2]
◆ operator-() [2/2]
◆ operator-=()
◆ operator/()
| Point2F operator/ |
( |
const F32 |
_div | ) |
const |
|
inline |
◆ operator/=()
| Point2F & operator/= |
( |
const F32 |
_div | ) |
|
|
inline |
◆ operator==()
| bool operator== |
( |
const Point2F & |
_test | ) |
const |
|
inline |
◆ round()
◆ set()
| void set |
( |
const F32 |
_x, |
|
|
const F32 |
_y |
|
) |
| |
|
inline |
Set point's co-ordinates.
◆ setMax()
| void setMax |
( |
const Point2F & |
_test | ) |
|
|
inline |
Store greater co-ordinates.
◆ setMin()
| void setMin |
( |
const Point2F & |
_test | ) |
|
|
inline |
Store lesser co-ordinates.
◆ Max
◆ Min
◆ One
◆ Zero
The documentation for this class was generated from the following files:
- math/mPoint.h
- math/mPoint.cpp