Back to Aurora Vision Library Lite website

You are here: Start » Geometry 2D » Geometry 2D Spatial Transforms » TranslatePoint

TranslatePoint


Header: AVL.h
Namespace: avl

Translates a point by a vector.

Syntax

void avl::TranslatePoint
(
	const avl::Point2D& inPoint,
	const avl::Vector2D& inDelta,
	bool inInverse,
	avl::Point2D& outPoint
)

Parameters

Name Type Default Description
Input value inPoint const Point2D&
Input value inDelta const Vector2D& Translation vector
Input value inInverse bool Switches to the inverse operation
Output value 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.