# Point4F

Engine/source/math/mPoint4.h

4D floating-point point.

More...

```F32
```
```w
```

W co-ordinate.

```F32
```
```x
```

X co-ordinate.

```F32
```
```y
```

Y co-ordinate.

```F32
```
```z
```

Z co-ordinate.

## Public Static Attributes

```const Point4F
```
```One
```
```const Point4F
```
```Zero
```

## Public Functions

```Point4F()
```

Create an uninitialized point.

```Point4F(const Point4F & )
```

Copy constructor.

```Point4F(F32 _x, F32 _y, F32 _z, F32 _w)
```

Create point from coordinates.

```Point3F
```
```asPoint3F()
```
```void
```
```interpolate(const Point4F & _pt1, const Point4F & _pt2, F32 _factor)
```

Interpolate from _pt1 to _pt2, based on _factor.

```F32
```
```len()
```
```operator const F32*()
```
```operator F32*()
```
```Point4F
```
```operator*(const Point4F & )
```
```Point4F
```
```operator*(F32 )
```
```Point4F &
```
```operator*=(const Point4F & )
```
```Point4F
```
```operator+(const Point4F & )
```
```Point4F &
```
```operator+=(const Point4F & )
```
```Point4F
```
```operator-(const Point4F & )
```
```Point4F
```
```operator/(F32 )
```
```Point4F &
```
```operator=(const Point3F & )
```
```Point4F &
```
```operator=(const Point4F & )
```
```void
```
```set(F32 _x, F32 _y, F32 _z, F32 _w)
```

Set point's coordinates.

```void
```
```zero()
```

## Detailed Description

4D floating-point point.

Uses F32 internally.

Useful for representing quaternions and other 4d beasties.

## Public Attributes

```F32 w
```

W co-ordinate.

```F32 x
```

X co-ordinate.

```F32 y
```

Y co-ordinate.

```F32 z
```

Z co-ordinate.

## Public Static Attributes

```const Point4F One
```
```const Point4F Zero
```

## Public Functions

```Point4F()
```

Create an uninitialized point.

```Point4F(const Point4F & )
```

Copy constructor.

```Point4F(F32 _x, F32 _y, F32 _z, F32 _w)
```

Create point from coordinates.

```asPoint3F()
```

```interpolate(const Point4F & _pt1, const Point4F & _pt2, F32 _factor)
```

Interpolate from _pt1 to _pt2, based on _factor.

Parameters:

 _pt1 Starting point. _pt2 Ending point. _factor Interpolation factor (0.0 .. 1.0).

```len()
```

```operator const F32*()
```

```operator F32*()
```

```operator*(const Point4F & )
```

```operator*(F32 )
```

```operator*=(const Point4F & )
```

```operator+(const Point4F & )
```

```operator+=(const Point4F & )
```

```operator-(const Point4F & )
```

```operator/(F32 )
```

```operator=(const Point3F & )
```

```operator=(const Point4F & )
```

```set(F32 _x, F32 _y, F32 _z, F32 _w)
```

Set point's coordinates.

```zero()
```