Float3

Types

struct Float3 A SIMD vector of 3 floats. On Intel, this is an m128, on Arm this is a float32x4_t.

Functions

Float3_Zero( void ) : Float3

Float3_Init( float v ) : Float3

Float3_New( float x, float y, float z ) : Float3

Float3_FromFloat2( Float2 v ) : Float3

Float3_FromFloat4( Float4 v ) : Float3

Float3_ToInt( Float3 v ) : Int3

Float3_X( Float3 a ) : float

Float3_Y( Float3 a ) : float

Float3_Z( Float3 a ) : float

Float3_SetX( Float3 a, float v ) : Float3

Float3_SetY( Float3 a, float v ) : Float3

Float3_SetZ( Float3 a, float v ) : Float3

Float3_Add( Float3 a, Float3 b ) : Float3

Float3_MulAdd( Float3 a, Float3 b, Float3 c ) : Float3

Float3_NegMulAdd( Float3 a, Float3 b, Float3 c ) : Float3

Float3_Sub( Float3 a, Float3 b ) : Float3

Float3_Mul( Float3 a, Float3 b ) : Float3

Float3_Scale( Float3 a, float b ) : Float3

Float3_Div( Float3 a, Float3 b ) : Float3

Float3_Abs( Float3 a ) : Float3

Float3_And( Float3 a, Float3 b ) : Float3

Float3_Or( Float3 a, Float3 b ) : Float3

Float3_Xor( Float3 a, Float3 b ) : Float3

Float3_AndNot( Float3 a, Float3 b ) : Float3

Float3_CopySign( Float3 a, Float3 b ) : Float3

Float3_Min( Float3 a, Float3 b ) : Float3

Float3_Max( Float3 a, Float3 b ) : Float3

Float3_Sqrt( Float3 a, Float3 b ) : Float3

Float3_Equal( Float3 a, Float3 b ) : Bool3

Float3_NotEqual( Float3 a, Float3 b ) : Bool3

Float3_Greater( Float3 a, Float3 b ) : Bool3

Float3_GreaterEqual( Float3 a, Float3 b ) : Bool3

Float3_Less( Float3 a, Float3 b ) : Bool3

Float3_LessEqual( Float3 a, Float3 b ) : Bool3

Float3_ApproxEqual( Float3 a, Float3 b ) : Bool3

Float3_Lerp( Float3 a, Float3 b, float t) : Float3

Float3_Dot( Float3 a, Float3 b ) : Float3

Float3_Negate( Float3 v ) : Float3

Float3_SqrMagnitude( Float3 v ) : float

Float3_Magnitude( Float3 v ) : float

Float3_SqrDistance( Float3 v ) : float

Float3_Distance( Float3 v ) : float

Float3_Normalized( Float3 v ) : Float4

Float3_NormalizedAndLength( Float3 v, float* prior_length ) : Float3

Float3_Cross( Float3 lhs, Float3 rhs ) : Float3

Float3_Select( Float3 a, Float3 b, Bool3 mask ) : Float3

Float3_Truncate( Float3 v ) : Float3

Float3_Floor( Float3 v ) : Float3

Float3_Ceil( Float3 v ) : Float3

Float3_Round( Float3 v ) : Float3

Float3_PingPong( Float3 v ) : Float3

Float3_Cos( Float3 v ) : Float3

Float3_CosDeg( Float3 v ) : Float3

Float3_Sin( Float3 v ) : Float3

Float3_SinDeg( Float3 v ) : Float3

Float3_Tan( Float3 v ) : Float3

Float3_TanDeg( Float3 v ) : Float3

Float3_ACos( Float3 v ) : Float3

Float3_ASin( Float3 v ) : Float3

Float3_Atan2( Float3 y, Float3 x ) : Float3

Swizzles

Float3_XXX( Float3 a ) : Float3 Float3_YYY( Float3 a ) : Float3
Float3_ZZZ( Float3 a ) : Float3

Float3_XYZ( Float3 a ) : Float3
Float3_XZY( Float3 a ) : Float3

Float3_YXZ( Float3 a ) : Float3
Float3_YZX( Float3 a ) : Float3

Float3_ZXY( Float3 a ) : Float3
Float3_ZYX( Float3 a ) : Float3