Computes the oriented angle between two vectors in [radian].
Namespace:
ceometric.VectorGeometryAssembly: ceometric.VectorGeometry (in ceometric.VectorGeometry.dll) Version: 1.8.0.0 (1.8.0.0)
Syntax
C# |
---|
public static double OrientedAngle( Vector3d a, Vector3d b, Vector3d n ) |
Visual Basic (Declaration) |
---|
Public Shared Function OrientedAngle ( _ a As Vector3d, _ b As Vector3d, _ n As Vector3d _ ) As Double |
Visual C++ |
---|
public: static double OrientedAngle( Vector3d^ a, Vector3d^ b, Vector3d^ n ) |
Parameters
- a
- Type: ceometric.VectorGeometry..::.Vector3d
A first 3d vector.
- b
- Type: ceometric.VectorGeometry..::.Vector3d
A second 3d vector.
- n
- Type: ceometric.VectorGeometry..::.Vector3d
A normal vector defining the orientation of the angle between a and b.
Return Value
Returns the oriented angle [0, 2*Pi] between the vectors a and b.Remarks
This method returns the angle between a and b for a rotation axis r = a x b so that
r * n > 0.