Search found 2 matches
- Thu May 29, 2014 2:15 pm
- Forum: Volume 101 (10100-10199)
- Topic: 10180 - Rope Crisis in Ropeland!
- Replies: 39
- Views: 27831
Re: 10180 - Rope Crisis in Ropeland !
Finally , I get it caused by the precision.It may help you.
- Wed May 14, 2014 4:07 pm
- Forum: Volume 101 (10100-10199)
- Topic: 10180 - Rope Crisis in Ropeland!
- Replies: 39
- Views: 27831
Re: 10180 - Rope Crisis in Ropeland !
I hvae got following info
double ang = acos((ab * ab + ac * ac - bc * bc) / (2.0 * ab * ac)); //AC
double ang = acos(a*b / (a.norm()*b.norm())); //WA
ab,ac,bc are the side of the triangle
a.norm() is the distance between a and orgin (0,0)
Have somebody know why using dot product to calc the ...
double ang = acos((ab * ab + ac * ac - bc * bc) / (2.0 * ab * ac)); //AC
double ang = acos(a*b / (a.norm()*b.norm())); //WA
ab,ac,bc are the side of the triangle
a.norm() is the distance between a and orgin (0,0)
Have somebody know why using dot product to calc the ...