Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // 4x4 Matrix; Four 4D 32-bit floating point vectors aligned to a 16-byte boundary
- Align(16) struct Float4x4
- {
- // Members
- union
- {
- // Swizzle; Lower three values of the vector
- struct { Float4 x; Vector3<Float4>ywz; };
- // Swizzle; Upper three values of the vector
- struct { Vector3<Float4> xyz; Float4 w; };
- // Swizzle; Middle two values of the vector
- struct { Float4 x; Vector2<Float4> yz; Float4 w; };
- // Swizzle; Upper or Lower two values of the vector
- struct { Vector2<Float4> xy; Vector2<Float4> zw; };
- // A single component of the vector
- struct { Float4 x, y, z, w; };
- };
- };
Advertisement
Add Comment
Please, Sign In to add comment