gradientspace / geometry3Sharp

C# library for 2D/3D geometric computation, mesh algorithms, and so on. Boost license.
http://www.gradientspace.com
Boost Software License 1.0
1.71k stars 384 forks source link

Why there no Matrix 4x4? #107

Closed WangWeiQiang230 closed 5 years ago

SirKnightTG commented 5 years ago

Yes, this is a very odd omission.

Also missing the Frustum class.

visose commented 5 years ago

I'm probably wrong, but if you're working in world space, Frame3f will give you most transformations that you need, more efficiently than using matrices. Matrix4x4's common use on the GPU for things like perspective projection is something out of the scope of this library.

See the answer here: https://math.stackexchange.com/questions/1355081/why-is-representing-rotations-through-quaternions-more-compact-and-quicker-than