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


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.


GeoHalf Geo::GeoHalf::operator-


public: GeoHalf operator-() const


Arithmetic operators.


Geo::GeoHalf::operator float


public: operator float() const


Convert to 'full' float.


GeoHalf& Geo::GeoHalf::operator*=


public: GeoHalf & operator*=
(
    GeoHalf h
)


Arithmetic operators.


GeoHalf& Geo::GeoHalf::operator*=


public: GeoHalf & operator*=
(
    float f
)


Arithmetic operators.


GeoHalf& Geo::GeoHalf::operator/=


public: GeoHalf & operator/=
(
    GeoHalf h
)


Arithmetic operators.


GeoHalf& Geo::GeoHalf::operator/=


public: GeoHalf & operator/=
(
    float f
)


Arithmetic operators.


GeoHalf& Geo::GeoHalf::operator+=


public: GeoHalf & operator+=
(
    const GeoHalf h
)


Arithmetic operators.


GeoHalf& Geo::GeoHalf::operator+=


public: GeoHalf & operator+=
(
    float f
)


Arithmetic operators.


GeoHalf& Geo::GeoHalf::operator=


public: GeoHalf & operator=
(
    const GeoHalf h
)


Arithmetic operators.


GeoHalf& Geo::GeoHalf::operator=


public: GeoHalf & operator=
(
    float f
)


Arithmetic operators.


GeoHalf& Geo::GeoHalf::operator-=


public: GeoHalf & operator-=
(
    GeoHalf h
)


Arithmetic operators.


GeoHalf& Geo::GeoHalf::operator-=


public: GeoHalf & operator-=
(
    float f
)


Arithmetic operators.