You are here: Start » AVL.NET » AVL.RescaleSegment(AvlNet.Segment2D, AvlNet.Point2D?, float, bool, AvlNet.Segment2D)
AVL.RescaleSegment(AvlNet.Segment2D, AvlNet.Point2D?, float, bool, AvlNet.Segment2D)
Lengthens or shortens a segment relatively.
| Namespace: | AvlNet |
|---|---|
| Assembly: | AVL.NET.dll |
Syntax
public static void RescaleSegment( AvlNet.Segment2D inSegment, AvlNet.Point2D? inReferencePoint, float inScale, bool inInverse, out AvlNet.Segment2D outSegment )
Parameters
- inSegment
- Type: AvlNet.Segment2D
- inReferencePoint
- Type: System.Nullable<AvlNet.Point2D>
The point to which all distances change linearly (the mass center by default), or null. - inScale
- Type: System.Single
Scaling factor (negative values invert the segment) - inInverse
- Type: System.Boolean
Switches to the inverse operation - outSegment
- Type: AvlNet.Segment2D
Examples
![]() |
![]() |
RescaleSegment performed on the sample segment, inReferencePoint = auto, inScale = 2.0 and inInverse = false.


