You are here:
Start »
AVL.NET »
AVL.RescaleVector Method
AVL.RescaleVector Method
Lengthens or shortens a vector relatively preserving its direction.
Namespace: | AvlNet |
Assembly: | AVL.NET.dll |
Syntax
public static void RescaleVector(
AvlNet.Vector2D inVector,
float inScale,
bool inInverse,
out AvlNet.Vector2D outVector
)
Parameters
Examples
RescaleVector performed on a vector (red one) with DeltaX = 0, DeltaY = 10 with parameters inScale = 5, inInverse = True. outVector returns vector (blue one)
Errors
Error type |
Description |
DomainError |
inScale cannot be zero in an inverse scaling in RescaleVector. |
See also