Kicking it Olde Sküül! Burgerlib on Github Follow Olde Sküül on Twitter Burgerbecky on LinkedIn Burgerbecky on LinkedIn
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
Burger::Word32ToVector2D_t Struct Reference

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

Collaboration diagram for Burger::Word32ToVector2D_t:
Collaboration graph
[legend]

Public Member Functions

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

Public Attributes

uint32_t x [2]
 Value as two 32 bit unsigned integers.
 
Vector2D_t v
 Value as two 32 bit floats.
 

Detailed Description

Structure to create a Vector2D_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 Vector2D_t structure and an array of data that maps directly over it.

// Initialize with 2 32 bit unsigned integers
{{0x7F800000U,0x7F800000U}};
const Word32ToVector2D_t g_Vector2DInfinity
Constant of Burger::g_fInf,Burger::g_fInf.
Definition brvector2d.cpp:1028
Structure to create a Vector2D_t with 32 bit unsigned integer constants.
Definition burger.h:16316

Member Function Documentation

◆ operator const Vector2D_t &()

Burger::Word32ToVector2D_t::operator const Vector2D_t & ( ) const
inlinenoexcept

Accessor to load the Vector2D_t.


See also
Burger::Vector3D_t or Burger::Vector4D_t

Member Data Documentation

◆ v

Vector2D_t Burger::Word32ToVector2D_t::v

Value as two 32 bit floats.

◆ x

uint32_t Burger::Word32ToVector2D_t::x[2]

Value as two 32 bit unsigned integers.