Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //-------------------------------------------------------------------------------------
- // Vectors
- //-------------------------------------------------------------------------------------
- //-------------------------------------------------------------------------------------
- // 2D Vector; 8-bit signed integer components
- typedef Vector2<Byte> Byte2;
- // 3D Vector; 8-bit signed integer components
- typedef Vector3<Byte> Byte3;
- // 4D Vector; 8-bit signed integer components
- typedef Vector4<Byte> Byte4;
- //-------------------------------------------------------------------------------------
- // 2D Vector; 8-bit unsigned integer components
- typedef Vector2<UByte> UByte2;
- // 3D Vector; 8-bit unsigned integer components
- typedef Vector3<UByte> UByte3;
- // 4D Vector; 8-bit unsigned integer components
- typedef Vector4<UByte> UByte4;
- //-------------------------------------------------------------------------------------
- // 2D Vector; 16-bit signed integer components
- typedef Vector2<Short> Short2;
- // 3D Vector; 16-bit signed integer components
- typedef Vector3<Short> Short3;
- // 4D Vector; 16-bit signed integer components
- typedef Vector4<Short> Short4;
- //-------------------------------------------------------------------------------------
- // 2D Vector; 16-bit unsigned integer components
- typedef Vector2<UShort> UShort2;
- // 3D Vector; 16-bit unsigned integer components
- typedef Vector3<UShort> UShort3;
- // 4D Vector; 16-bit unsigned integer components
- typedef Vector4<UShort> UShort4;
- //-------------------------------------------------------------------------------------
- // 2D Vector; 32-bit signed integer components
- typedef Vector2<Int> Int2;
- // 3D Vector; 32-bit signed integer components
- typedef Vector3<Int> Int3;
- // 4D Vector; 32-bit signed integer components
- typedef Vector4<Int> Int4;
- //-------------------------------------------------------------------------------------
- // 2D Vector; 32-bit unsigned integer components
- typedef Vector2<UInt> UInt2;
- // 3D Vector; 32-bit unsigned integer components
- typedef Vector3<UInt> UInt3;
- // 4D Vector; 32-bit unsigned integer components
- typedef Vector4<UInt> UInt4;
- //-------------------------------------------------------------------------------------
- // 2D Vector; 16-bit floating-point components
- typedef Vector2<Half> Half2;
- // 3D Vector; 16-bit floating-point components
- typedef Vector3<Half> Half3;
- // 4D Vector; 16-bit floating-point components
- typedef Vector4<Half> Half4;
- //-------------------------------------------------------------------------------------
- // 2D Vector; 32-bit floating-point components
- typedef Vector2<Float> Float2;
- // 3D Vector; 32-bit floating-point components
- typedef Vector3<Float> Float3;
- // 4D Vector; 32-bit floating-point components aligned to a 16-byte boundary
- typedef Align(16) struct Vector4<Float> Float4;
- //-------------------------------------------------------------------------------------
- // Quaternion; Simply a Float4 renamed to a helper type
- typedef Float4 Quaternion;
- //-------------------------------------------------------------------------------------
- // Matrices
- //-------------------------------------------------------------------------------------
- //-------------------------------------------------------------------------------------
- // 2x2 Matrix; Two 2D 32-bit floating point vectors aligned to a 16-byte boundary
- typedef Align(16) struct Vector2<Float2> Float2x2;
- // 2x3 Matrix; Three 2D 32-bit floating point vectors aligned to a 16-byte boundary
- typedef Align(16) struct Vector3<Float2> Float2x3;
- // 2x4 Matrix; Four 2D 32-bit floating point vectors aligned to a 16-byte boundary
- typedef Align(16) struct Vector4<Float2> Float2x4;
- //-------------------------------------------------------------------------------------
- // 3x2 Matrix; Two 3D 32-bit floating point vectors aligned to a 16-byte boundary
- typedef Align(16) struct Vector2<Float3> Float3x2;
- // 3x3 Matrix; Three 3D 32-bit floating point vectors aligned to a 16-byte boundary
- typedef Align(16) struct Vector3<Float3> Float3x3;
- // 3x4 Matrix; Three 3D 32-bit floating point vectors aligned to a 16-byte boundary
- typedef Align(16) struct Vector4<Float3> Float3x4;
- //-------------------------------------------------------------------------------------
- // 4x2 Matrix; Two 4D 32-bit floating point vectors aligned to a 16-byte boundary
- typedef Align(16) struct Vector2<Float4> Float4x2;
- // 4x3 Matrix; Three 4D 32-bit floating point vectors aligned to a 16-byte boundary
- typedef Align(16) struct Vector3<Float4> Float4x3;
- // 4x4 Matrix; Four 4D 32-bit floating point vectors aligned to a 16-byte boundary
- typedef Align(16) struct Vector4<Float4> Float4x4;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement