Back to Aurora Vision Library website

You are here: Start » Function Reference » Path » Path Spatial Transforms » TranslatePath

TranslatePath


Header: AVL.h
Namespace: avl
Module: FoundationLite

Translates a path by a vector.

Syntax

C++
C#
 
void avl::TranslatePath
(
	const avl::Path& inPath,
	const avl::Vector2D& inDelta,
	bool inInverse,
	avl::Path& outPath
)

Parameters

Name Type Default Description
Input value inPath const Path& Input path
Input value inDelta const Vector2D& Translation vector
Input value inInverse bool Switches to the inverse operation
Output value outPath Path& Output path

In-place Processing

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

Read more about In-place Computation.

Examples

TranslatePath run on the sample paths with inDelta = Vector2D(50,0).

See Also

  • RotatePath – Rotates a path clockwise around a center point.
  • AlignPath – Moves a path from a local coordinate system to the absolute one.