Point2D

Engine/source/math/mPoint2.h

2D high-precision point.

More...

```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.

```void
```
```convolve(const Point2D & )
```
```void
```
```convolveInverse(const Point2D & )
```
```void
```
```interpolate(const Point2D & a, const Point2D & b, const F64 c)
```

Interpolate from a to b, based on c.

```bool
```
```isZero()
```
```F64
```
```len()
```
```F64
```
```lenSquared()
```
```void
```
```neg()
```
```void
```
```normalize()
```
```void
```
```normalize(F64 val)
```
```operator const F64*()
```
```operator F64*()
```
```bool
```
```operator!=(const Point2D & )
```
```Point2D
```
```operator*(F64 )
```
```Point2D &
```
```operator*=(F64 )
```
```Point2D
```
```operator+(const Point2D & )
```
```Point2D &
```
```operator+=(const Point2D & )
```
```Point2D
```
```operator-()
```
```Point2D
```
```operator-(const Point2D & )
```
```Point2D &
```
```operator-=(const Point2D & )
```
```Point2D
```
```operator/(F64 )
```
```Point2D &
```
```operator/=(F64 )
```
```bool
```
```operator==(const Point2D & )
```
```void
```
```set(F64 _x, F64 _y)
```

Set point's coordinates.

```void
```
```setMax(const Point2D & )
```

Store greater co-ordinates.

```void
```
```setMin(const Point2D & )
```

Store lesser co-ordinates.

```void
```
```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.