Back to Aurora Vision Library website

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

TranslateLine


Header: AVL.h
Namespace: avl
Module: FoundationLite

Translates a line by a vector.

Syntax

C++
C#
 
void avl::TranslateLine
(
	const avl::Line2D& inLine,
	const avl::Vector2D& inDelta,
	bool inInverse,
	const avl::TranslateAlignment::Type inDeltaAlignment,
	avl::Line2D& outLine
)

Parameters

Name Type Default Description
Input value inLine const Line2D&
Input value inDelta const Vector2D& Vector of translation
Input value inInverse bool Switches to the inverse operation
Input value inDeltaAlignment const TranslateAlignment::Type
Output value outLine Line2D&

In-place Processing

This function supports in-place data processing - you can pass the same reference to inLine and outLine

Read more about In-place Computation.

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.