You are here: Start » AVL.NET » AVL.ResizeSegment3D
Lengthens or shortens a segment in 3D to a new length preserving its orientation and center point.
Namespace: | AvlNet |
---|---|
Assembly: | AVL.NET.dll |
Syntax
C++
C#
public static void ResizeSegment3D ( AvlNet.Segment3D inSegment3D, float inNewLength, float inAnchor, out AvlNet.Segment3D outSegment3D )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
inSegment3D | AvlNet.Segment3D | ||||
inNewLength | float | <0.0f, INF> | 1.0f | Default value: 1.0f. | |
inAnchor | float | <-INF, INF> | 0.5f | Anchor point, 0 means the beginning, 1 means the end of the segment. Default value: 0.5f. | |
outSegment3D | AvlNet.Segment3D |