kanikanikani's picture

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. ?
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

Comment viewing options

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

Pardon my ignorance but where did you get Vector3d from..?

nythrix's picture

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 :)

the Fiddler's picture
Quote:

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