Float2

Types

struct Float2 A SIMD vector of 2 floats. On Intel, this is an m128, on Arm this is a float32x2_t.

Functions

Float2_Zero( void ) : Float2

Float2_Init( float v ) : Float2

Float2_FromFloat3( Float3 v ) : Float2

Float2_FromFloat4( Float4 v ) : Float2

Float2_New( float x, float y ) : Float2

Float2_ToInt( Float2 v ) : Int2

Float2_X( Float2 a ) : float

Float2_Y( Float2 a ) : float

Float2_SetX( Float2 a, float v ) : Float2

Float2_SetY( Float2 a, float v ) : Float2

Float2_Add( Float2 a, Float2 b ) : Float2

Float2_MulAdd( Float2 a, Float2 b, Float2 c ) : Float2

Float2_NegMulAdd( Float2 a, Float2 b, Float2 c ) : Float2

Float2_Sub( Float2 a, Float2 b ) : Float2

Float2_Mul( Float2 a, Float2 b ) : Float2

Float2_Scale( Float2 a, Float2 b ) : Float2

Float2_Div( Float2 a, Float2 b ) : Float2

Float2_Abs( Float2 a ) : Float2

Float2_And( Float2 a, Float2 b ) : Float2

Float2_Or( Float2 a, Float2 b ) : Float2

Float2_Xor( Float2 a, Float2 b ) : Float2

Float2_AndNot( Float2 a, Float2 b ) : Float2

Float2_CopySign( Float2 a, Float2 b ) : Float2

Float2_Min( Float2 a, Float2 b ) : Float2

Float2_Max( Float2 a, Float2 b ) : Float2

Float2_Sqrt( Float2 a, Float2 b ) : Float2

Float2_Equal( Float2 a, Float2 b ) : Bool2

Float2_NotEqual( Float2 a, Float2 b ) : Bool2

Float2_Greater( Float2 a, Float2 b ) : Bool2

Float2_GreaterEqual( Float2 a, Float2 b ) : Bool2

Float2_Less( Float2 a, Float2 b ) : Bool2

Float2_LessEqual( Float2 a, Float2 b ) : Bool2

Float2_ApproxEqual( Float2 a, Float2 b ) : Bool2

Float2_Lerp( Float2 a, Float2 b, float t) : Float2

Float2_Dot( Float2 a, Float2 b ) : Float2

Float2_Negate( Float2 v ) : Float2

Float2_SqrMagnitude( Float2 v ) : float

Float2_Magnitude( Float2 v ) : float

Float2_SqrDistance( Float2 v ) : float

Float2_Distance( Float2 v ) : float

Float2_Normalized( Float2 v ) : Float2

Float2_NormalizedAndLength( Float2 v, float* prior_length ) : Float2

Float2_Select( Float2 a, Float2 b, Bool2 mask ) : Float2

Float2_Truncate( Float2 v ) : Float2

Float2_Floor( Float2 v ) : Float2

Float2_Ceil( Float2 v ) : Float2

Float2_Round( Float2 v ) : Float2

Float2_PingPong( Float2 v ) : Float2

Float2_Rotate( Float2 v, float radians ) : Float2

Swizzles

Float2_XX( Float2 a ) : Float2 Float2_YY( Float2 a ) : Float2

Float2_XY( Float2 a ) : Float2
Float2_YX( Float2 a ) : Float2