You are here: Start » AVL.NET » AVL.RescalePoint(AvlNet.Point2D, AvlNet.Point2D, float, bool, AvlNet.Point2D)
AVL.RescalePoint(AvlNet.Point2D, AvlNet.Point2D, float, bool, AvlNet.Point2D)
Changes the distance of a point to a reference point.
| Namespace: | AvlNet |
|---|---|
| Assembly: | AVL.NET.dll |
Syntax
public static void RescalePoint( AvlNet.Point2D inPoint, AvlNet.Point2D inReferencePoint, float inScale, bool inInverse, out AvlNet.Point2D outPoint )
Parameters
- inPoint
- Type: AvlNet.Point2D
- inReferencePoint
- Type: AvlNet.Point2D
Point to which the distance will be changed - inScale
- Type: System.Single
Scaling factor - inInverse
- Type: System.Boolean
Switches to the inverse operation - outPoint
- Type: AvlNet.Point2D
Examples
![]() |
![]() |
RescalePoint performed on the sample point, inReferencePoint = (150.0, 150.0), inScale = -1.5 and inInverse = false. The inReferencePoint point is drawn on the first image in blue.
Errors
| Error type | Description |
|---|---|
| DomainError | inScale cannot be zero in an inverse rescaling of a point in RescalePoint. |


