You are here: Start » AVL.NET » AVL.LerpVectors_Radial(AvlNet.Vector2D, AvlNet.Vector2D, AvlNet.RotationDirection?, float, AvlNet.Vector2D)

AVL.LerpVectors_Radial(AvlNet.Vector2D, AvlNet.Vector2D, AvlNet.RotationDirection?, float, AvlNet.Vector2D)

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax


public static void LerpVectors_Radial(
	AvlNet.Vector2D inVector1,
	AvlNet.Vector2D inVector2,
	AvlNet.RotationDirection? inRotationDirection,
	float inLambda,
	out AvlNet.Vector2D outVector
)

Parameters

inVector1
Type: AvlNet.Vector2D
inVector2
Type: AvlNet.Vector2D
inRotationDirection
Type: System.Nullable<AvlNet.RotationDirection>
inLambda
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

LerpVectors_Radial performed on two vectors: inVector1 DeltaX = 50, DeltaY = 50, inVector2 DeltaX = -25, DeltaY = 25, inRotationDirection = CounterClockwise, inLambda = 0,25. The green vector is the output vector.

See also