evilkos's picture

Matrix4.CreateRotation missing

opentk-2013-11-22. Matrix4.Rotate says that it's deprecated and I should call Matrix4.CreateRotation, but there is no such function. For some reason it's present only for Matrix classes that have "2" in the name.


Comments

Comment viewing options

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

Matrix4 only has CreateRotation[X/Y/Z], axis-angle and quaternion rotations can be created via FromAxisAngle and FromQuaternion respectively. I believe they were called this to match XNA's matrix struct.

evilkos's picture

Thanks! :) Will use that. ObsoleteAttribute's message still needs to be changed on Matrix4.Rotate, though.