View Single Post
  #2  
Old May 20th, 2009, 03:38 PM
HallsofIvy HallsofIvy is offline
MHF Contributor
 
Join Date: Apr 2005
Posts: 3,499
Thanks: 328
Thanked 1,214 Times in 1,115 Posts
HallsofIvy has much to be proud ofHallsofIvy has much to be proud ofHallsofIvy has much to be proud ofHallsofIvy has much to be proud ofHallsofIvy has much to be proud ofHallsofIvy has much to be proud ofHallsofIvy has much to be proud ofHallsofIvy has much to be proud ofHallsofIvy has much to be proud of
Default

Quote:
Originally Posted by ave View Post
iv used the following formula to work out an angle between 2 points in 3d space

cos t =((x1 * x2)+(y1*y2)+(z1*z2) )/ sqrt((x1*x1)+(y1*y1)+(z1*z1)) * sqrt((x2*x2)+(y2*y2)+(z2*z2))

which works fine, I now need to know if the angle returned is a positive angle or negative one
The angle is positive. If cos t itself is negative, that means t is between pi/2 and pi radians.
Reply With Quote
The following users thank HallsofIvy for this useful post:
Donate to MHF