Can someone give me the solution in simple trig?

# easiest way to find angle btween 2 points?

Two points constitute a line, but however if you are talking about two vectors from the origin, then we can find the angle between those VECTORS.

GLfloat findangle(vector one, vector two)

{

GLfloat dotproduct=one.x*two.x + one.y*two.y + one.z*two.z;
GLfloat cosangle(dotproduct/(one.length*two.length));

return acos(cosangle);

}