Back to FabImage Library website
You are here: Start » Function Reference » Geometry 2D » Geometry 2D Spatial Transforms » TranslatePoint
Header: | FIL.h |
---|---|
Namespace: | fil |
Module: | FoundationLite |
Translates a point by a vector.
Syntax
C++
C#
void fil::TranslatePoint ( const fil::Point2D& inPoint, const fil::Vector2D& inDelta, bool inInverse, fil::Point2D& outPoint )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
![]() |
inPoint | const Point2D& | ||
![]() |
inDelta | const Vector2D& | Translation vector | |
![]() |
inInverse | bool | Switches to the inverse operation | |
![]() |
outPoint | Point2D& |
In-place Processing
This function supports in-place data processing - you can pass the same reference to inPoint and outPoint
Read more about In-place Computation.
Examples
![]() |
![]() |
TranslatePoint performed on the sample point, inDelta = (80.0, 120.0) and inInverse = False.