Back to Aurora Vision Library website

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


Header: AVL.h
Namespace: avl
Module: FoundationLite

Rotates a rectangle clockwise around a center point.


void avl::RotateRectangle
	const avl::Rectangle2D& inRectangle,
	atl::Optional<const avl::Point2D&> inCenter,
	float inAngle,
	bool inInverse,
	avl::Rectangle2D& outRectangle


Name Type Default Description
Input value
inRectangle const Rectangle2D&
Input value
inCenter Optional<const Point2D&> NIL Center of rotation (the rectangle's point by default)
Input value
inAngle float Clockwise rotation angle
Input value
inInverse bool Switches to the inverse operation
Output value
outRectangle Rectangle2D&

In-place Processing

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

Read more about In-place Computation.


RotateRectangle performed on the sample rectangle, inCenter = Auto, inAngle = 40.0 and inInverse = False.