1
Support / how to caculate the angle between the SimpleVector
« on: November 06, 2011, 02:54:55 am »
I want to caculate the angle between two SimpleVectors, I using the following code:
SimpleVector sp=new SimpleVector(0,1,0);
float angle=sp.calcAngle(new SimpleVector(0,0,1));
Logger.log("angle is "+angle);
I thought the angle should be 90, but the output "angle is 1.5707964", is there something I misunderstand? Thank you!
SimpleVector sp=new SimpleVector(0,1,0);
float angle=sp.calcAngle(new SimpleVector(0,0,1));
Logger.log("angle is "+angle);
I thought the angle should be 90, but the output "angle is 1.5707964", is there something I misunderstand? Thank you!