iliak's picture

Matrix3 / Matrix2

Project:The Open Toolkit library
Version:all versions
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:open
Description

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


Comments

Comment viewing options

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

#1

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

#2

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.