This is the documentation for Enlighten.
class Geo GeoHalf
class Geo::GeoHalf
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.
Functions
Name | Description |
|---|---|
Constructor. | |
Construct from 'full' float. | |
Construct from u16 representation of a half. | |
Arithmetic operators. | |
Convert to 'full' float. | |
Arithmetic operators. | |
Arithmetic operators. | |
Arithmetic operators. | |
Arithmetic operators. | |
Arithmetic operators. | |
Arithmetic operators. | |
Arithmetic operators. | |
Arithmetic operators. | |
Arithmetic operators. | |
Arithmetic operators. |
Geo::GeoHalf::GeoHalf
public: GeoHalf()
Constructor.
Geo::GeoHalf::GeoHalf
public: GeoHalf
(
float f
)
Construct from 'full' float.
Geo::GeoHalf::GeoHalf
public: GeoHalf
(
u16 u
)
Construct from u16 representation of a half.