
Vector3.Distance ??
Posted Sunday, 10 October, 2010 - 08:41 by jp-sdt inHi all,
Now I'm at a point, where I need a new method in OpenTK ^^
XNA have a ´Vector3-Method named Vector3.Distance(ref Vector3 val1, ref Vector3 val2. out float Distance);
It would be nice, if I could use this function in OpenTK the next time ^^
Or are there alternative usages for that?
Nice Reguards
JP-sdt
(sorry for my bad English :/ )


Comments
Re: Vector3.Distance ??
The distance between two vectors is the length of their difference, so (vec1 - vec2).Length should result in the same value.
Re: Vector3.Distance ??
I tried but the errorbox shows me that it isn't possible to convert float in Vector3.
here is an example how I used
greetings
Re: Vector3.Distance ??
XD uups
I see the reason now....
^^"
You're right...it works :)
thank you