Back to Aurora Vision Library website

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

RotatePoint


Header: AVL.h
Namespace: avl
Module: FoundationLite

Rotates a point clockwise around a center point.

Syntax

C++
C#
 
void avl::RotatePoint
(
	const avl::Point2D& inPoint,
	const avl::Point2D& inCenter,
	float inAngle,
	bool inInverse,
	avl::Point2D& outPoint
)

Parameters

Name Type Default Description
Input value inPoint const Point2D&
Input value inCenter const Point2D& Center of rotation
Input value inAngle float Clockwise rotation angle
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, inCenter and outPoint

Read more about In-place Computation.

Examples

RotatePoint performed on the sample point, inCenter = (136.0, 135.0), inAngle = 180.0 and inInverse = False. The inCenter point is drawn on the first image in blue.