Click or drag to resize
DirectionComputeCardinalDirection Method (Single)
Computes the direction which is closest to the specified angle. Angle defines rotation from forward direction (0, 1) positive counter-clockwise.

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

Parameters

angle
Type: SystemSingle
Angle to get direction for (from forward direction (0, 1) positive counter-clockwise).

Return Value

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