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

AVL.TranslateLine

Translates a line by a vector.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void TranslateLine
(
	AvlNet.Line2D inLine,
	AvlNet.Vector2D inDelta,
	bool inInverse,
	AvlNet.TranslateAlignment inDeltaAlignment,
	out AvlNet.Line2D outLine
)

Parameters

Name Type Range Default Description
inLineAvlNet.Line2D
inDeltaAvlNet.Vector2DVector of translation.
inInverseboolSwitches to the inverse operation.
inDeltaAlignmentAvlNet.TranslateAlignment
outLineAvlNet.Line2D

Examples

TranslateLine performed on the sample line, inDelta = (200.0, 50.0) and inInverse = False.

Errors

List of possible exceptions:

Error type Description
DomainError Indefinite line on input in TranslateLine.

See also