You are here: Start » AVL.NET » AVL.ResizeSegment
Lengthens or shortens a segment to a new length preserving its orientation and center point.
Namespace: | AvlNet |
---|---|
Assembly: | AVL.NET.dll |
Syntax
C++
C#
public static void ResizeSegment ( AvlNet.Segment2D inSegment, float inNewLength, float inAnchor, out AvlNet.Segment2D outSegment )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
inSegment | AvlNet.Segment2D | ||||
inNewLength | float | <0.0f, INF> | 1.0f | Default value: 1.0f. | |
inAnchor | float | <-INF, INF> | 0.5f | Default value: 0.5f. | |
outSegment | AvlNet.Segment2D |