agadoul's picture

[Locked] Generics in opentk.math

Hi,

I have been using openTk for quite some time now and I love it.
The integration of the math library with the opengl functions is one of the nice feature,
But I have only one problem I am always confronted with : generics.
Let me explain. I want to create a KeyFrameAnimation class, I have to create one class for each type : vector3, vector4....
where a generic will do but thanks to the lack of operators in c# generics this is impossible.
People have been working on ways to still use operators in the3ses cases :

http://www.codeproject.com/KB/cs/genericnumerics.aspx
http://www.codeproject.com/KB/cs/genericoperators.aspx

Do you think such interfaces have a chance to be included in a future release ?

thanks,

Axel.

Comments

Comment viewing options

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

I'm not sure I'll get more answers than from your previous try:
http://www.opentk.com/node/979

the Fiddler's picture

Please continue discussion in the aforementioned thread.

[Locked]