Back to Adaptive Vision Library websiteYou are here:
Start »
Function Reference »
Geometry 2D Spatial Transforms »
TranslateLine
Translates a line by a vector.
Syntax
C++
C#
void avl::TranslateLine
(
const avl::Line2D& inLine,
const avl::Vector2D& inDelta,
bool inInverse,
avl::Line2D& outLine
)
void TranslateLine
(
Line2D inLine,
Vector2D inDelta,
bool inInverse,
out Line2D outLine
)
Parameters
|
Name |
Type |
Default |
Description |
|
inLine |
const Line2D& |
|
|
|
inDelta |
const Vector2D& |
|
Vector of translation |
|
inInverse |
bool |
|
Switches to the inverse operation |
|
outLine |
Line2D& |
|
|
Examples
TranslateLine performed on the sample line, inDelta = (200.0, 50.0) and inInverse = False.
Errors
Error type |
Description |
DomainError |
Indefinite line on input in TranslateLine. |