Vector3D.AngleBetween Method (Vector3D, Vector3D)
Assembly: PresentationCore (in PresentationCore.dll)
Return ValueType: System.Double
The angle in degrees needed to rotate vector1 into vector2.
Signed angles do not extend into 3-D space, so an angle between 0 and 180 degrees is returned.
The following example shows how to get the angle between two Vector3D structures.
// Calculates the angle between two Vector3Ds using the static AngleBetween method. // Returns a Double. Vector3D vector1 = new Vector3D(20, 30, 40); Vector3D vector2 = new Vector3D(45, 70, 80); Double angleBetween; angleBetween = Vector3D.AngleBetween(vector1, vector2 ); // angleBetween is approximately equal to 4.15129
Available since 3.0