You are here: Start » AVL.NET » AVL.RescaleVector
Lengthens or shortens a vector relatively preserving its direction.
Namespace: | AvlNet |
---|---|
Assembly: | AVL.NET.dll |
Syntax
C++
C#
public static void RescaleVector ( AvlNet.Vector2D inVector, float inScale, bool inInverse, out AvlNet.Vector2D outVector )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
inVector | AvlNet.Vector2D | ||||
inScale | float | 1.0f | Scaling factor. Default value: 1.0f. | ||
inInverse | bool | Switches to the inverse operation. | |||
outVector | AvlNet.Vector2D |
Examples
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | inScale cannot be zero in an inverse scaling in RescaleVector. |