Point2D
2D high-precision point.
Public Functions
Point2D()
Create uninitialized point.
bool
isZero()
bool
operator!=(const Point2D & )
Point2D &
Point2D &
operator+=(const Point2D & )
Point2D &
operator-=(const Point2D & )
Point2D &
bool
operator==(const Point2D & )
Detailed Description
2D high-precision point.
Uses F64 internally.
Public Attributes
F64 x
X co-ordinate.
F64 y
Y co-ordinate.
Public Static Attributes
const Point2D One
const Point2D Zero
Public Functions
Point2D()
Create uninitialized point.
Point2D(const Point2D & )
Copy constructor.
Point2D(F64 _x, F64 _y)
Create point from coordinates.
convolve(const Point2D & )
convolveInverse(const Point2D & )
interpolate(const Point2D & a, const Point2D & b, const F64 c)
Interpolate from a to b, based on c.
Parameters:
a | Starting point. |
b | Ending point. |
c | Interpolation factor (0.0 .. 1.0). |
isZero()
len()
lenSquared()
neg()
normalize()
normalize(F64 val)
operator const F64*()
operator F64*()
operator!=(const Point2D & )
operator*(F64 )
operator*=(F64 )
operator+(const Point2D & )
operator+=(const Point2D & )
operator-()
operator-(const Point2D & )
operator-=(const Point2D & )
operator/(F64 )
operator/=(F64 )
operator==(const Point2D & )
set(F64 _x, F64 _y)
Set point's coordinates.
setMax(const Point2D & )
Store greater co-ordinates.
setMin(const Point2D & )
Store lesser co-ordinates.
zero()
Zero all values.