Back to Adaptive Vision Library Lite website

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


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
inRectangle const Rectangle2D&
inCenter Optional<const Point2D&> NIL Center of rotation (the rectangle's point by default)
inAngle float Clockwise rotation angle
inInverse bool Switches to the inverse operation
outRectangle Rectangle2D&


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