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

AVL.ResizeVector(AvlNet.Vector2D, float, AvlNet.Vector2D)

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax


public static void ResizeVector(
	AvlNet.Vector2D inVector,
	float inNewLength,
	out AvlNet.Vector2D outVector
)

Parameters

inVector
Type: AvlNet.Vector2D
inNewLength
Type: System.Single
outVector
Type: AvlNet.Vector2D

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

ResizeVector performed on a vector (red one) with DeltaX = 0, DeltaY = 10 with parameter inNewLength = 5. outVector returns vector (blue one)

See also