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. |
Anchor | ||||
---|---|---|---|---|
|
Geo::GeoHalf::GeoHalf
...
public: GeoHalf()
...
Constructor.
Anchor | ||||
---|---|---|---|---|
|
Geo::GeoHalf::GeoHalf
...
public: GeoHalf
(
float f
)
...
Construct from 'full' float.
Anchor | ||||
---|---|---|---|---|
|
Geo::GeoHalf::GeoHalf
...
public: GeoHalf
(
u16 u
)
...
Construct from u16 representation of a half.
Anchor | ||||
---|---|---|---|---|
|
GeoHalf Geo::GeoHalf::operator-
...
public: GeoHalf operator-() const
...
Arithmetic operators.
Anchor | ||||
---|---|---|---|---|
|
Geo::GeoHalf::operator float
...
public: operator float() const
...
Convert to 'full' float.
Anchor | ||||
---|---|---|---|---|
|
GeoHalf& Geo::GeoHalf::operator*=
...
public: GeoHalf & operator*=
(
GeoHalf h
)
...
Arithmetic operators.
Anchor | ||||
---|---|---|---|---|
|
GeoHalf& Geo::GeoHalf::operator*=
...
public: GeoHalf & operator*=
(
float f
)
...
Arithmetic operators.
Anchor | ||||
---|---|---|---|---|
|
GeoHalf& Geo::GeoHalf::operator/=
...
public: GeoHalf & operator/=
(
GeoHalf h
)
...
Arithmetic operators.
Anchor | ||||
---|---|---|---|---|
|
GeoHalf& Geo::GeoHalf::operator/=
...
public: GeoHalf & operator/=
(
float f
)
...
Arithmetic operators.
Anchor | ||||
---|---|---|---|---|
|
GeoHalf& Geo::GeoHalf::operator+=
...
public: GeoHalf & operator+=
(
const GeoHalf h
)
...
Arithmetic operators.
Anchor | ||||
---|---|---|---|---|
|
GeoHalf& Geo::GeoHalf::operator+=
...
public: GeoHalf & operator+=
(
float f
)
...
Arithmetic operators.
Anchor | ||||
---|---|---|---|---|
|
GeoHalf& Geo::GeoHalf::operator=
...
public: GeoHalf & operator=
(
const GeoHalf h
)
...
Arithmetic operators.
Anchor | ||||
---|---|---|---|---|
|
GeoHalf& Geo::GeoHalf::operator=
...
public: GeoHalf & operator=
(
float f
)
...
Arithmetic operators.
Anchor | ||||
---|---|---|---|---|
|
GeoHalf& Geo::GeoHalf::operator-=
...
public: GeoHalf & operator-=
(
GeoHalf h
)
...
Arithmetic operators.
Anchor | ||||
---|---|---|---|---|
|
GeoHalf& Geo::GeoHalf::operator-=
...
public: GeoHalf & operator-=
(
float f
)
...
Arithmetic operators.