Closed ChristophHaag closed 1 month ago
Well, technically an identity matrix is also a 2D matrix; you should classify matrices differently:
if (graphene_matrix_is_identity (&m))
// identity
else if (graphene_matrix_is_2d (&m))
// affine
else
// 3D
The issue with the decomposition of an identity matrix is valid, though: graphene_matrix_decompose()
should consider an identity matrix as a 3D matrix.
compiled with gcc $(pkg-config --libs --cflags graphene-1.0) graphene_matrix.c
Experienced behavior
Expected behavior
Operating system in use
Archlinux, graphene 1.10.8
SIMD implementation in use
Defaults on x86_64, Ryzen 3950X