Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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

NameDescription
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
a1c77bc943e3416a92025208b80f22f1c
a1c77bc943e3416a92025208b80f22f1c

Geo::GeoHalf::GeoHalf

...

public: GeoHalf()

...

Constructor.


Anchor
a0a3a5a4efd8618e8ecb3b2ace616416a
a0a3a5a4efd8618e8ecb3b2ace616416a

Geo::GeoHalf::GeoHalf

...

public: GeoHalf
(
    float f
)

...

Construct from 'full' float.


Anchor
ae504684234e87fc4e2799b562607908d
ae504684234e87fc4e2799b562607908d

Geo::GeoHalf::GeoHalf

...

public: GeoHalf
(
    u16 u
)

...

Construct from u16 representation of a half.


Anchor
a47d9156ee70d1660803bbd288edca3d4
a47d9156ee70d1660803bbd288edca3d4

GeoHalf Geo::GeoHalf::operator-

...

public: GeoHalf operator-() const

...

Arithmetic operators.


Anchor
a838436083d8bf97d521b9ea584a75f50
a838436083d8bf97d521b9ea584a75f50

Geo::GeoHalf::operator float

...

public: operator float() const

...

Convert to 'full' float.


Anchor
ae88ed705be4d7d8be2988b02cdebb2b9
ae88ed705be4d7d8be2988b02cdebb2b9

GeoHalf& Geo::GeoHalf::operator*=

...

public: GeoHalf & operator*=
(
    GeoHalf h
)

...

Arithmetic operators.


Anchor
a3b93c61b9f02d8b0c3a7e8631a9e5381
a3b93c61b9f02d8b0c3a7e8631a9e5381

GeoHalf& Geo::GeoHalf::operator*=

...

public: GeoHalf & operator*=
(
    float f
)

...

Arithmetic operators.


Anchor
a43376967b0302a7b813d12a3f092fc65
a43376967b0302a7b813d12a3f092fc65

GeoHalf& Geo::GeoHalf::operator/=

...

public: GeoHalf & operator/=
(
    GeoHalf h
)

...

Arithmetic operators.


Anchor
af9053f2c70897a89736f18d63ec7c01b
af9053f2c70897a89736f18d63ec7c01b

GeoHalf& Geo::GeoHalf::operator/=

...

public: GeoHalf & operator/=
(
    float f
)

...

Arithmetic operators.


Anchor
a329ed630801edd7de7f4fbd35297ae6a
a329ed630801edd7de7f4fbd35297ae6a

GeoHalf& Geo::GeoHalf::operator+=

...

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

...

Arithmetic operators.


Anchor
a771349c6d4d06d91d7b0bc0fbd2b2053
a771349c6d4d06d91d7b0bc0fbd2b2053

GeoHalf& Geo::GeoHalf::operator+=

...

public: GeoHalf & operator+=
(
    float f
)

...

Arithmetic operators.


Anchor
a092582bf3c2dffc9fb4b94486ad35fd6
a092582bf3c2dffc9fb4b94486ad35fd6

GeoHalf& Geo::GeoHalf::operator=

...

public: GeoHalf & operator=
(
    const GeoHalf h
)

...

Arithmetic operators.


Anchor
a7528a3f32b0865e7a7573af94d0c19c4
a7528a3f32b0865e7a7573af94d0c19c4

GeoHalf& Geo::GeoHalf::operator=

...

public: GeoHalf & operator=
(
    float f
)

...

Arithmetic operators.


Anchor
a2bedc1d330312d86b7b54af76481f756
a2bedc1d330312d86b7b54af76481f756

GeoHalf& Geo::GeoHalf::operator-=

...

public: GeoHalf & operator-=
(
    GeoHalf h
)

...

Arithmetic operators.


Anchor
a2f395ff5ae48a4c4b57e567c2c5156ec
a2f395ff5ae48a4c4b57e567c2c5156ec

GeoHalf& Geo::GeoHalf::operator-=

...

public: GeoHalf & operator-=
(
    float f
)

...

Arithmetic operators.