iliak's picture

Matrix3 / Matrix2

Project:The Open Toolkit library
Version:all versions
Category:feature request

There's Matrix4 but no Matrix3 (ie : this is useful for NormalMatrix and GLSL mat3)


Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Fetze's picture


Title:Matrix3» Matrix3 / Matrix2

Seconded. Also, Matrix2 is missing which would be really useful for Vector2 rotation / scaling transformations. While it is possible to do that using Quaternions or Matrix4, it will certainly be faster to use Vector2.Transform( .. ) with a Matrix2.

the Fiddler's picture


I do not think I will be able to handle this in the near future but if someone wishes to help, please do!

A Matrix3 implementation already exists (disabled) under Source/OpenTK/Math. It will need some work to bring it in line with Matrix4, but it would be a good place to start.