rakkarage's picture


just curious why rename (deprecate) from Translation to CreateTranslation instead of Translate for consistency with Matrix4.Rotate and Matrix4.Scale and GL.Translate, GL.Rotate, and GL.Scale



Comment viewing options

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

Two reasons:

  • Matrix4.Translation doesn't do what it implies (unlike GL.Translate, it creates a translation matrix but does not apply it.)
  • We'd like to bring the math API closer to XNA. This way, you'll be able to use tutorials and code built for XNA with less issues (for example, physics libraries like JigLibX).
rakkarage's picture

it cant apply it... its static... just like Matrix4.Rotate? should that be renamed CreateRotation as well? and scale

the Fiddler's picture

Rotation -> CreateRotation[XYZ], CreateFromAxisAngle, CreateFromQuaternion
Scale -> CreateScale

Here is the full API we are targeting and here is a relatively complete (but untested) implementation. The main issue is that I am working full-throttle on other parts of OpenTK right now, so any help with the math API appreciated!

rakkarage's picture

oh it was renamed to CreateFromAxisAngle...

i was using the Rotate overload that takes a quaternion which is not deprecated