
Vector3d cannot be used anywhere
Posted Sunday, 28 February, 2010 - 21:33 by kanikanikani inWhy is there a Vector3d type but no possibilty to use it in i.e. GL.Vertex3() , GL.Color3() etc. ?
For example GL.Vertex3() can have 3 doubles (x,y,z) as arguments or a Vector3 but no Vector3d, so one has to do something like that:
Vector3d foo;
//some stuff
GL.Vertex3(foo.X, foo.Y, foo.Z);
same problem for Vector2d and GL.TexCoord2()
Is there a possible reason for that? Will it be fixed someday? Please don't tell me that i can use Vector3 instead of Vector3d because I won't for obvious number precision reasons (i.e. in physics-calculations standard floating point precision just won't do in some cases, so double precision is needed)
GL.Vertex3(foo.X, foo.Y, foo.Z); is just very inconvienient in contrast to GL.Vertex3(foo);
sorry for my english (it's not my native language)
and sorry if that problem was postet already (I tried to search first)
apart from that: OpenTK rocks! It made my "OpenGL-Programming-Life" much much easier and faster :)


Comments
Re: Vector3d cannot be used anywhere
Pardon my ignorance but where did you get Vector3d from..?
Re: Vector3d cannot be used anywhere
The reason behind this is we've possibly forgotten about it :)
Can you please submit a feature request so this doesn't get lost?
It's part of the OpenTK Math, objarni :)
Re: Vector3d cannot be used anywhere
Why is there a Vector3d type but no possibilty to use it in i.e. GL.Vertex3() , GL.Color3() etc. ?
Because noone has asked for this before. :)
Link for bug reports & feature requests: http://www.opentk.com/node/add/project-issue/opentk