|
Torque2D Reference
|
2D floating-point point. More...
#include <mPoint.h>
Public Member Functions | |
| Point2F () | |
| Create uninitialized point. More... | |
| Point2F (const Point2F &) | |
| Copy constructor. More... | |
| Point2F (const F32 _x, const F32 _y) | |
| Create point from co-ordinates. More... | |
| void | set (const F32 _x, const F32 _y) |
| Set point's co-ordinates. More... | |
| void | setMin (const Point2F &) |
| Store lesser co-ordinates. More... | |
| void | setMax (const Point2F &) |
| Store greater co-ordinates. More... | |
| void | interpolate (const Point2F &a, const Point2F &b, const F32 c) |
| operator F32 * () | |
| operator F32 * () const | |
| bool | isZero () const |
| Check for zero coordinates. (No epsilon.) More... | |
| F32 | len () const |
| Get length. More... | |
| F32 | lenSquared () const |
| Get squared length (one sqrt less than len()). More... | |
| void | neg () |
| Invert signs of co-ordinates. More... | |
| void | normalize () |
| Normalize vector. More... | |
| void | normalize (F32 val) |
| Normalize, scaling by val. More... | |
| void | convolve (const Point2F &) |
| Convolve by parameter. More... | |
| void | convolveInverse (const Point2F &) |
| Inversely convolute by parameter. (ie, divide) More... | |
| void | round () |
| bool | operator== (const Point2F &) const |
| bool | operator!= (const Point2F &) const |
| Point2F | operator+ (const Point2F &) const |
| Point2F | operator- (const Point2F &) const |
| Point2F & | operator+= (const Point2F &) |
| Point2F & | operator-= (const Point2F &) |
| Point2F | operator* (const F32) const |
| Point2F | operator/ (const F32) const |
| Point2F & | operator*= (const F32) |
| Point2F & | operator/= (const F32) |
| Point2F | operator- () const |
Public Attributes | |
| F32 | x |
| F32 | y |
2D floating-point point.
|
inline |
Create uninitialized point.
|
inline |
Create point from co-ordinates.
|
inline |
Convolve by parameter.
|
inline |
Inversely convolute by parameter. (ie, divide)
Interpolate from a to b, based on c.
| a | Starting point. |
| b | Ending point. |
| c | Interpolation factor (0.0 .. 1.0). |
|
inline |
Check for zero coordinates. (No epsilon.)
|
inline |
Get length.
|
inline |
Get squared length (one sqrt less than len()).
|
inline |
Invert signs of co-ordinates.
|
inline |
Normalize vector.
|
inline |
Normalize, scaling by val.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Set point's co-ordinates.
|
inline |
Store greater co-ordinates.
|
inline |
Store lesser co-ordinates.
| F32 x |
| F32 y |
1.8.3.1