Vector2d.DirectionalWith Method

Checks if the vector has the same direction as another with a given tolerance.
Public Function DirectionalWith( _ 
ByVal v As Vector2d, _ 
ByVal tol As Double
) As Boolean
This language is not supported or no code example is available.
public bool DirectionalWith( 
Vector2d v
double tol 
)
This language is not supported or no code example is available.
public:  
bool DirectionalWith( 
Vector2d^ v
double tol 
)
This language is not supported or no code example is available.
public function DirectionalWith( 
v : Vector2d
tol : double 
) : boolean;
This language is not supported or no code example is available.

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