Vector3 troubles!
Posted Friday, 11 July, 2008 - 10:06 by flopoloco in
Hi there, how can I convert this piece of code to C#/OpenTK? I have troubles porting Cross and Normalize methods... (Oh boy, do I suck in coding or what ;-) )
Vec3f sum;
Vec3f out;
Vec3f left;
sum += out.cross(left).normalize();




Comments
Jul 11
10:31:17Re: Vector3 troubles!
posted by the FiddlerTry using the static methods like this:
Vector3 out = new Vector3();
Vector3 left = new Vector3();
sum += Vector3.Normalize(Vector3.Cross(out, left));
Jul 11
13:16:24Re: Vector3 troubles!
posted by flopolocoThanks for the help!