Point2D

Engine/source/math/mPoint2.h

2D high-precision point.

More...

Public Attributes

x 

X co-ordinate.

y 

Y co-ordinate.

Public Static Attributes

Public Functions

Create uninitialized point.

Copy constructor.

Point2D(F64 _x, F64 _y)

Create point from coordinates.

Interpolate from a to b, based on c.

bool
len()
set(F64 _x, F64 _y)

Set point's coordinates.

Store greater co-ordinates.

Store lesser co-ordinates.

zero()

Zero all values.

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.