mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-08 16:48:18 +00:00
Add more comments
This commit is contained in:
@@ -19,6 +19,7 @@ LN10 :: 2.30258509299404568401799145468436421
|
||||
|
||||
F32_EPSILON :: 1e-7
|
||||
|
||||
// Odin matrices are stored internally as Column-Major, which matches OpenGL/GLSL by default
|
||||
mat2 :: distinct matrix[2, 2]f32
|
||||
mat3 :: distinct matrix[3, 3]f32
|
||||
mat4 :: distinct matrix[4, 4]f32
|
||||
@@ -26,7 +27,10 @@ mat2x2 :: mat2
|
||||
mat3x3 :: mat3
|
||||
mat4x4 :: mat4
|
||||
|
||||
// Should this be renamed the other way around?
|
||||
// IMPORTANT NOTE: These data types are "backwards" in normal mathematical terms
|
||||
// but they match how GLSL and OpenGL defines them in name
|
||||
// Odin: matrix[R, C]f32
|
||||
// GLSL: matCxR
|
||||
mat3x2 :: distinct matrix[2, 3]f32
|
||||
mat4x2 :: distinct matrix[2, 4]f32
|
||||
mat2x3 :: distinct matrix[3, 2]f32
|
||||
|
||||
Reference in New Issue
Block a user