Back to FabImage Library website
You are here: Start » Function Reference » Geometry 2D » Geometry 2D Spatial Transforms » TranslateLine
Header: | FIL.h |
---|---|
Namespace: | fil |
Module: | FoundationLite |
Translates a line by a vector.
Syntax
C++
C#
void fil::TranslateLine ( const fil::Line2D& inLine, const fil::Vector2D& inDelta, bool inInverse, const fil::TranslateAlignment::Type inDeltaAlignment, fil::Line2D& outLine )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
inLine | const Line2D& | |||
inDelta | const Vector2D& | Vector of translation | ||
inInverse | bool | Switches to the inverse operation | ||
inDeltaAlignment | const TranslateAlignment::Type | |||
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
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Indefinite line on input in TranslateLine. |