You are here: Start » AVL.NET » Function Reference » Geometry 2D » Geometry 2D Spatial Transforms » AVL.RescaleLine

AVL.RescaleLine

Changes the distance of a line to a reference point.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void RescaleLine
(
	AvlNet.Line2D inLine,
	AvlNet.Point2D inReferencePoint,
	float inScale,
	bool inInverse,
	out AvlNet.Line2D outLine
)

Parameters

Name Type Range Default Description
inLineAvlNet.Line2D
inReferencePointAvlNet.Point2DThe point to which all distances change linearly.
inScalefloat1.0fScaling factor. Default value: 1.0f.
inInverseboolSwitches to the inverse operation.
outLineAvlNet.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.

See also