openMSX
|
Go to the source code of this file.
Typedefs | |
using | imat2 = matMxN< 2, 2, int > |
using | imat3 = matMxN< 3, 3, int > |
using | imat4 = matMxN< 4, 4, int > |
using | mat32 = matMxN< 3, 2, float > |
using | mat23 = matMxN< 2, 3, float > |
Functions | |
TEST_CASE ("gl_mat: constructors") | |
TEST_CASE ("gl_mat: modify columns or elements") | |
CHECK (m3==m3) | |
CHECK (m3 !=n3) | |
CHECK (i3==i3) | |
CHECK (i3 !=j3) | |
CHECK (m4==m4) | |
CHECK (m4 !=n4) | |
CHECK (i4==i4) | |
CHECK (i4 !=j4) | |
CHECK (m32==m32) | |
CHECK (m32 !=n32) | |
CHECK (m23==m23) | |
CHECK (m23 !=n23) | |
TEST_CASE ("gl_mat: copy constructor, assignment") | |
TEST_CASE ("gl_mat: construct from larger matrix") | |
TEST_CASE ("gl_mat: addition, subtraction, negation") | |
TEST_CASE ("gl_mat: matrix * scalar") | |
TEST_CASE ("gl_mat: matrix * column-vector") | |
TEST_CASE ("gl_mat: matrix * matrix") | |
TEST_CASE ("gl_mat: transpose") | |
TEST_CASE ("gl_mat: determinant, inverse") | |
TEST_CASE ("gl_mat: norm-2 squared") | |
Variables | |
mat3 | n3 (vec3(1, 0, 3), vec3(4, 5, 6), vec3(7, 8, 9)) |
mat3 | o3 (vec3(1, 2, 3), vec3(4, 5, 0), vec3(7, 8, 9)) |
mat3 | p3 (vec3(1, 2, 3), vec3(4, 5, 6), vec3(7, 0, 9)) |
imat3 | i3 (ivec3(1, 2, 3), ivec3(4, 5, 6), ivec3(7, 8, 9)) |
imat3 | j3 (ivec3(1, 2, 3), ivec3(4, 5, 6), ivec3(7, 0, 9)) |
imat3 | k3 (ivec3(1, 2, 3), ivec3(4, 5, 0), ivec3(7, 8, 9)) |
imat3 | l3 (ivec3(0, 2, 3), ivec3(4, 5, 6), ivec3(7, 8, 9)) |
mat4 | m4 (vec4(1, 2, 3, 4), vec4(3, 4, 5, 6), vec4(5, 6, 7, 8), vec4(7, 8, 9, 0)) |
mat4 | n4 (vec4(1, 2, 0, 4), vec4(3, 4, 5, 6), vec4(5, 6, 7, 8), vec4(7, 8, 9, 0)) |
mat4 | o4 (vec4(1, 2, 3, 4), vec4(0, 4, 5, 6), vec4(5, 6, 7, 8), vec4(7, 8, 9, 0)) |
mat4 | p4 (vec4(1, 2, 3, 4), vec4(3, 4, 5, 6), vec4(5, 0, 7, 8), vec4(7, 8, 9, 0)) |
mat4 | q4 (vec4(1, 2, 3, 4), vec4(3, 4, 5, 6), vec4(5, 6, 7, 8), vec4(7, 8, 9, 1)) |
imat4 | i4 (ivec4(1, 2, 3, 4), ivec4(3, 4, 5, 6), ivec4(5, 6, 7, 8), ivec4(7, 8, 9, 0)) |
imat4 | j4 (ivec4(1, 0, 3, 4), ivec4(3, 4, 5, 6), ivec4(5, 6, 7, 8), ivec4(7, 8, 9, 0)) |
imat4 | k4 (ivec4(1, 2, 3, 4), ivec4(3, 4, 0, 6), ivec4(5, 6, 7, 8), ivec4(7, 8, 9, 0)) |
imat4 | l4 (ivec4(1, 2, 3, 4), ivec4(3, 4, 5, 6), ivec4(5, 6, 7, 0), ivec4(7, 8, 9, 0)) |
imat4 | h4 (ivec4(1, 2, 3, 4), ivec4(3, 4, 5, 6), ivec4(5, 6, 7, 8), ivec4(0, 8, 9, 0)) |
mat32 | m32 (vec3(2, 3, 4), vec3(5, 6, 7)) |
mat32 | n32 (vec3(2, 3, 0), vec3(5, 6, 7)) |
mat32 | o32 (vec3(2, 3, 4), vec3(0, 6, 7)) |
mat23 | m23 (vec2(2, 3), vec2(4, 5), vec2(6, 7)) |
mat23 | n23 (vec2(0, 3), vec2(4, 5), vec2(6, 7)) |
mat23 | o23 (vec2(2, 3), vec2(4, 0), vec2(6, 7)) |
mat23 | p23 (vec2(2, 3), vec2(4, 5), vec2(0, 7)) |
CHECK | ( | m3 ! | = n3 | ) |
CHECK | ( | m3 | = =m3 | ) |
Referenced by expect(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), test_narrow(), test_zip(), test_zip(), test_zip_equal(), and test_zip_equal().
TEST_CASE | ( | "gl_mat: | addition, |
subtraction | , | ||
negation" | |||
) |
TEST_CASE | ( | "gl_mat: construct from larger matrix" | ) |
TEST_CASE | ( | "gl_mat: constructors" | ) |
TEST_CASE | ( | "gl_mat: copy | constructor, |
assignment" | |||
) |
TEST_CASE | ( | "gl_mat: | determinant, |
inverse" | |||
) |
Definition at line 504 of file gl_mat.cc.
References CHECK(), gl::determinant(), i3, i4, gl::inverse(), and m4.
TEST_CASE | ( | "gl_mat: matrix * column-vector" | ) |
TEST_CASE | ( | "gl_mat: matrix * matrix" | ) |
TEST_CASE | ( | "gl_mat: matrix * scalar" | ) |
TEST_CASE | ( | "gl_mat: modify columns or elements" | ) |
TEST_CASE | ( | "gl_mat: norm-2 squared" | ) |
TEST_CASE | ( | "gl_mat: transpose" | ) |
imat4 h4(ivec4(1, 2, 3, 4), ivec4(3, 4, 5, 6), ivec4(5, 6, 7, 8), ivec4(0, 8, 9, 0)) | ( | ivec4(1, 2, 3, 4) | , |
ivec4(3, 4, 5, 6) | , | ||
ivec4(5, 6, 7, 8) | , | ||
ivec4(0, 8, 9, 0) | |||
) |
imat3 i3(ivec3(1, 2, 3), ivec3(4, 5, 6), ivec3(7, 8, 9)) | ( | ivec3(1, 2, 3) | , |
ivec3(4, 5, 6) | , | ||
ivec3(7, 8, 9) | |||
) |
Referenced by gl::inverse(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), and TEST_CASE().
imat4 i4(ivec4(1, 2, 3, 4), ivec4(3, 4, 5, 6), ivec4(5, 6, 7, 8), ivec4(7, 8, 9, 0)) | ( | ivec4(1, 2, 3, 4) | , |
ivec4(3, 4, 5, 6) | , | ||
ivec4(5, 6, 7, 8) | , | ||
ivec4(7, 8, 9, 0) | |||
) |
Referenced by TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), and TEST_CASE().
imat3 j3(ivec3(1, 2, 3), ivec3(4, 5, 6), ivec3(7, 0, 9)) | ( | ivec3(1, 2, 3) | , |
ivec3(4, 5, 6) | , | ||
ivec3(7, 0, 9) | |||
) |
Referenced by TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), and TEST_CASE().
imat4 j4(ivec4(1, 0, 3, 4), ivec4(3, 4, 5, 6), ivec4(5, 6, 7, 8), ivec4(7, 8, 9, 0)) | ( | ivec4(1, 0, 3, 4) | , |
ivec4(3, 4, 5, 6) | , | ||
ivec4(5, 6, 7, 8) | , | ||
ivec4(7, 8, 9, 0) | |||
) |
Referenced by TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), and TEST_CASE().
imat3 k3(ivec3(1, 2, 3), ivec3(4, 5, 0), ivec3(7, 8, 9)) | ( | ivec3(1, 2, 3) | , |
ivec3(4, 5, 0) | , | ||
ivec3(7, 8, 9) | |||
) |
Referenced by TEST_CASE().
imat4 k4(ivec4(1, 2, 3, 4), ivec4(3, 4, 0, 6), ivec4(5, 6, 7, 8), ivec4(7, 8, 9, 0)) | ( | ivec4(1, 2, 3, 4) | , |
ivec4(3, 4, 0, 6) | , | ||
ivec4(5, 6, 7, 8) | , | ||
ivec4(7, 8, 9, 0) | |||
) |
Referenced by TEST_CASE(), and TEST_CASE().
imat3 l3(ivec3(0, 2, 3), ivec3(4, 5, 6), ivec3(7, 8, 9)) | ( | ivec3(0, 2, 3) | , |
ivec3(4, 5, 6) | , | ||
ivec3(7, 8, 9) | |||
) |
Referenced by TEST_CASE(), and TEST_CASE().
imat4 l4(ivec4(1, 2, 3, 4), ivec4(3, 4, 5, 6), ivec4(5, 6, 7, 0), ivec4(7, 8, 9, 0)) | ( | ivec4(1, 2, 3, 4) | , |
ivec4(3, 4, 5, 6) | , | ||
ivec4(5, 6, 7, 0) | , | ||
ivec4(7, 8, 9, 0) | |||
) |
Referenced by TEST_CASE(), TEST_CASE(), and TEST_CASE().
Referenced by TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), and TEST_CASE().
Referenced by TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), and TEST_CASE().
mat4 m4(vec4(1, 2, 3, 4), vec4(3, 4, 5, 6), vec4(5, 6, 7, 8), vec4(7, 8, 9, 0)) | ( | vec4(1, 2, 3, 4) | , |
vec4(3, 4, 5, 6) | , | ||
vec4(5, 6, 7, 8) | , | ||
vec4(7, 8, 9, 0) | |||
) |
Referenced by TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), and TEST_CASE().
mat3 n3(vec3(1, 0, 3), vec3(4, 5, 6), vec3(7, 8, 9)) | ( | vec3(1, 0, 3) | , |
vec3(4, 5, 6) | , | ||
vec3(7, 8, 9) | |||
) |
Referenced by TEST_CASE(), TEST_CASE(), and TEST_CASE().
Referenced by TEST_CASE(), and TEST_CASE().
mat4 n4(vec4(1, 2, 0, 4), vec4(3, 4, 5, 6), vec4(5, 6, 7, 8), vec4(7, 8, 9, 0)) | ( | vec4(1, 2, 0, 4) | , |
vec4(3, 4, 5, 6) | , | ||
vec4(5, 6, 7, 8) | , | ||
vec4(7, 8, 9, 0) | |||
) |
Referenced by TEST_CASE(), TEST_CASE(), and TEST_CASE().
mat3 o3(vec3(1, 2, 3), vec3(4, 5, 0), vec3(7, 8, 9)) | ( | vec3(1, 2, 3) | , |
vec3(4, 5, 0) | , | ||
vec3(7, 8, 9) | |||
) |
Referenced by TEST_CASE(), and TEST_CASE().
Referenced by TEST_CASE().
mat4 o4(vec4(1, 2, 3, 4), vec4(0, 4, 5, 6), vec4(5, 6, 7, 8), vec4(7, 8, 9, 0)) | ( | vec4(1, 2, 3, 4) | , |
vec4(0, 4, 5, 6) | , | ||
vec4(5, 6, 7, 8) | , | ||
vec4(7, 8, 9, 0) | |||
) |
Referenced by TEST_CASE().
mat3 p3(vec3(1, 2, 3), vec3(4, 5, 6), vec3(7, 0, 9)) | ( | vec3(1, 2, 3) | , |
vec3(4, 5, 6) | , | ||
vec3(7, 0, 9) | |||
) |
Referenced by openmsx::PixelOperations::blend(), openmsx::PixelOperations::blend(), openmsx::PixelOperations::blend(), SimpleHashSet< InvalidValue, Hasher, Equality >::erase(), ImBezierCubicCalc(), ImBezierCubicClosestPoint(), ImBezierCubicClosestPointCasteljau(), ImBezierQuadraticCalc(), TEST_CASE(), and TEST_CASE().