Back to Aurora Vision Library website

You are here: Start » Function Reference » Geometry 2D » Geometry 2D Spatial Transforms » RotatePointArray

RotatePointArray


Header: AVL.h
Namespace: avl
Module: FoundationLite

Rotates an array of points clockwise around a center point.

Syntax

C++
C#
 
void avl::RotatePointArray
(
	const atl::Array<avl::Point2D>& inPoints,
	atl::Optional<const avl::Point2D&> inCenter,
	float inAngle,
	bool inInverse,
	atl::Array<avl::Point2D>& outPoints
)

Parameters

Name Type Default Description
Input value inPoints const Array<Point2D>&
Input value inCenter Optional<const Point2D&> NIL Center of rotation (the mass center by default)
Input value inAngle float Clockwise rotation angle
Input value inInverse bool Switches to the inverse operation
Output value outPoints Array<Point2D>&

In-place Processing

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

Read more about In-place Computation.