Vector2d.DirectionalWith Method

Checks if the vector has the same direction as another with a given tolerance.
public bool DirectionalWith( 
   Vector2d v
   double tol 
)

Parameters

v
Vector2d

The other vector.

tol
double

The maximum distance between x,y of the two vectors normalized.

Return Value

bool

True if this vector is about the same as the one compared with.

.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