You are here: Start » FIL.NET » Function Reference » Geometry 2D » Geometry 2D Spatial Transforms » FIL.RescaleSegment
Lengthens or shortens a segment relatively.
Namespace: | FilNet |
---|---|
Assembly: | FIL.NET.dll |
Syntax
C++
C#
public static void RescaleSegment ( FilNet.Segment2D inSegment, float inScale, bool inInverse, out FilNet.Segment2D outSegment )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() | inSegment | FilNet.Segment2D | |||
![]() | inScale | float | 1.0f | Scaling factor (negative values invert the segment). Default value: 1.0f. | |
![]() | inInverse | bool | Switches to the inverse operation. | ||
![]() | outSegment | FilNet.Segment2D |
Examples
![]() |
![]() |
RescaleSegment performed on the sample segment, inReferencePoint = auto, inScale = 2.0 and inInverse = false.
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Scale cannot be zero in an inverse rescaling of a segment in RescaleSegment. |