Kicking it Olde Sküül! Burgerlib on Github Follow Olde Sküül on Twitter Burgerbecky on LinkedIn Burgerbecky on LinkedIn
Loading...
Searching...
No Matches
Burger::Word32ToVector3D_t Struct Reference

Structure to create a Vector3D_t with 32 bit unsigned integer constants. More...

Collaboration diagram for Burger::Word32ToVector3D_t:

Public Member Functions

 operator const Vector3D_t & () const noexcept
 Accessor to load the Vector3D_t.
 

Public Attributes

uint32_t x [3]
 Value as three 32 bit unsigned integers.
 
Vector3D_t v
 Value as three 32 bit floats.
 

Detailed Description

Structure to create a Vector3D_t with 32 bit unsigned integer constants.


There is no standard for initializing 32 bit floats at compile time without generating startup glue code. This structure fixes the problem by creating a union between the Vector3D_t structure and an array of data that maps directly over it.

// Initialize with 3 32 bit unsigned integers
{{0x7F800000U,0x7F800000U,0x7F800000U}};
const Word32ToVector3D_t g_Vector3DInfinity
Constant of Burger::g_fInf,Burger::g_fInf,Burger::g_fInf.
Definition brvector3d.cpp:1553
Structure to create a Vector3D_t with 32 bit unsigned integer constants.
Definition burger.h:16626

Member Function Documentation

◆ operator const Vector3D_t &()

Burger::Word32ToVector3D_t::operator const Vector3D_t & ( ) const
inlinenoexcept

Accessor to load the Vector3D_t.


See also
Burger::Vector2D_t or Burger::Vector4D_t

Member Data Documentation

◆ v

Vector3D_t Burger::Word32ToVector3D_t::v

Value as three 32 bit floats.

◆ x

uint32_t Burger::Word32ToVector3D_t::x[3]

Value as three 32 bit unsigned integers.