This is the documentation for Enlighten.
Convenience value type for a half float.
All maths is done in floats and converted back to half float after. This can introduce a lot of conversions, so if you are doing a lot of maths you are better off doing it all in floats and using the conversion functions directly.
| Name | Description |
|---|---|
| GeoHalf() | Constructor. |
| GeoHalf(float) | Construct from 'full' float. |
| GeoHalf(u16) | Construct from u16 representation of a half. |
| operator-() | Arithmetic operators. |
| operator float() | Convert to 'full' float. |
| operator*=(GeoHalf) | Arithmetic operators. |
| operator*=(float) | Arithmetic operators. |
| operator/=(GeoHalf) | Arithmetic operators. |
| operator/=(float) | Arithmetic operators. |
| operator+=(const GeoHalf) | Arithmetic operators. |
| operator+=(float) | Arithmetic operators. |
| operator=(const GeoHalf) | Arithmetic operators. |
| operator=(float) | Arithmetic operators. |
| operator-=(GeoHalf) | Arithmetic operators. |
| operator-=(float) | Arithmetic operators. |
public: GeoHalf()
Constructor.
public: GeoHalf
(
float f
)
Construct from 'full' float.
public: GeoHalf
(
u16 u
)
Construct from u16 representation of a half.
public: GeoHalf operator-() const
Arithmetic operators.
public: operator float() const
Convert to 'full' float.
public: GeoHalf & operator*=
(
GeoHalf h
)
Arithmetic operators.
public: GeoHalf & operator*=
(
float f
)
Arithmetic operators.
public: GeoHalf & operator/=
(
GeoHalf h
)
Arithmetic operators.
public: GeoHalf & operator/=
(
float f
)
Arithmetic operators.
public: GeoHalf & operator+=
(
const GeoHalf h
)
Arithmetic operators.
public: GeoHalf & operator+=
(
float f
)
Arithmetic operators.
public: GeoHalf & operator=
(
const GeoHalf h
)
Arithmetic operators.
public: GeoHalf & operator=
(
float f
)
Arithmetic operators.
public: GeoHalf & operator-=
(
GeoHalf h
)
Arithmetic operators.
public: GeoHalf & operator-=
(
float f
)
Arithmetic operators.