Click or drag to resize
DirectionComputeCardinalDirection Method (Vector2F)
Computes the direction which is closest to the specified vector.

Namespace: Slash.Math.Utils
Assembly: Slash.Math (in Slash.Math.dll) Version: 1.0.6018.40177
Syntax
public static DirectionType ComputeCardinalDirection(
	Vector2F vector
)

Parameters

vector
Type: Slash.Math.Algebra.VectorsVector2F
Vector to get direction for.

Return Value

Type: DirectionType
Direction which is closest to the specified vector.
See Also