Click or drag to resize
VectorDirection Method
Returns a unit vector in the direction of this vector.

Namespace: Algs4Net
Assembly: Algs4Net (in Algs4Net.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public Vector Direction()

Return Value

Type: Vector
a unit vector in the direction of this vector
Exceptions
ExceptionCondition
ArithmeticExceptionif this vector is the zero vector
See Also