You are here: Start » FIL.NET » Function Reference » Geometry 2D » Geometry 2D Spatial Transforms » FIL.RescaleLine
Changes the distance of a line to a reference point.
Namespace: | FilNet |
---|---|
Assembly: | FIL.NET.dll |
Syntax
C++
C#
public static void RescaleLine ( FilNet.Line2D inLine, FilNet.Point2D inReferencePoint, float inScale, bool inInverse, out FilNet.Line2D outLine )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() | inLine | FilNet.Line2D | |||
![]() | inReferencePoint | FilNet.Point2D | The point to which all distances change linearly. | ||
![]() | inScale | float | 1.0f | Scaling factor. Default value: 1.0f. | |
![]() | inInverse | bool | Switches to the inverse operation. | ||
![]() | outLine | FilNet.Line2D |
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Indefinite line on input in RescaleLine. |
DomainError | Scale cannot be zero in an inverse rescaling of a line in RescaleLine. |