You are here: Start » AVL.NET » AVL.VectorDirection(AvlNet.Vector2D, float)

AVL.VectorDirection(AvlNet.Vector2D, float)

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax


public static void VectorDirection(
	AvlNet.Vector2D inVector,
	out float outDirection
)

Parameters

inVector
Type: AvlNet.Vector2D
outDirection
Type: System.Single

Description

Note that because of inaccuracies of floating-point arithmetic, some geometric operations (including this one) may lead to unpredictable results for degenerated cases. In this filter such a case occurs when a zero vector is given on input.

Examples

VectorDirection performed on a vector with parameters: DeltaX = 10, DeltaY = 10.
outDirection returns 45.

See also