You are here: Start » AVL.NET » AVL.RescaleLine(AvlNet.Line2D, AvlNet.Point2D, float, bool, AvlNet.Line2D)
AVL.RescaleLine(AvlNet.Line2D, AvlNet.Point2D, float, bool, AvlNet.Line2D)
Changes the distance of a line to a reference point.
| Namespace: | AvlNet |
|---|---|
| Assembly: | AVL.NET.dll |
Syntax
public static void RescaleLine( AvlNet.Line2D inLine, AvlNet.Point2D inReferencePoint, float inScale, bool inInverse, out AvlNet.Line2D outLine )
Parameters
- inLine
- Type: AvlNet.Line2D
- inReferencePoint
- Type: AvlNet.Point2D
The point to which all distances change linearly (the mass center by default) - inScale
- Type: System.Single
Scaling factor - inInverse
- Type: System.Boolean
Switches to the inverse operation - outLine
- Type: AvlNet.Line2D
Errors
| Error type | Description |
|---|---|
| DomainError | Indefinite line on input in RescaleLine. |
| DomainError | inScale cannot be zero in an inverse rescaling of a line in RescaleLine. |
