Message 1 of 15
How to obtain the angle between two vector3d? The angle 's range should be 0-2PI

Not applicable
07-19-2011
07:46 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,I define a vextor via two points(ptStart and ptDirection).And now I want to get the angle between my vector3d and the X Axis.Here is my code:
Dim Ang As Double = ptStart.GetVectorTo(ptDirection).GetAngleTo(Vector3d.XAxis)
But the range is 0-PI.How can I change it to 0-2PI?