Arty
Public Member Functions | Public Attributes | List of all members
float2 Struct Reference

Public Member Functions

 float2 (float x)
 
 float2 (const float3 &xy)
 
 float2 (const float4 &xy)
 
 float2 (float x, float y)
 
bool operator== (const float2 &other) const
 
bool operator!= (const float2 &other) const
 
float operator[] (size_t i) const
 
float & operator[] (size_t i)
 
float2operator+= (const float2 &a)
 
float2operator-= (const float2 &a)
 
float2operator*= (float a)
 
float2operator*= (const float2 &a)
 

Public Attributes

union {
   struct {
      float   x
 
      float   y
 
   } 
 
   float   values [2]
 
}; 
 

The documentation for this struct was generated from the following files: