You are here: Start » AVL.NET » Invoke.ResizeVector
Lengthens or shortens a vector preserving its direction.
| Namespace: | Avl | 
|---|---|
| Assembly: | AvlNet.dll | 
Syntax
C++
C#
public static void ResizeVector ( Avl.Vector2D inVector, float inNewLength, out Avl.Vector2D outVector )
Parameters
| Name | Type | Range | Default | Description | |
|---|---|---|---|---|---|
![]()  | inVector | Avl.Vector2D | |||
![]()  | inNewLength | float | <0.0f, INF> | 1.0f | Default value: 1.0f. | 
![]()  | outVector | Avl.Vector2D | 


