Vector2d.DifferentialAngle Method

Computes the angular difference from this vector to another in the range -PI to +PI.
public double DifferentialAngle( 
   Vector2d v 
)

Parameters

v
Vector2d

The vector to compare with.

Return Value

double

A value between -PI to +PI Zero if the vectors have the same angle. Positive if v turns to left from this. Negative if v turns to right from this.

.NET Framework

Supported in: 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8

In this article

Definition