Back to Aurora Vision Library website
You are here: Start » Function Reference » Geometry 2D » Geometry 2D Features » RectangleCenter
Header: | AVL.h |
---|---|
Namespace: | avl |
Module: | FoundationLite |
Computes the center point of a rectangle.
Syntax
C++
C#
void avl::RectangleCenter ( const avl::Rectangle2D& inRectangle, avl::Point2D& outCenterPoint )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
![]() |
inRectangle | const Rectangle2D& | ||
![]() |
outCenterPoint | Point2D& |
Examples
![]() |
RectangleCenter performed on a rectangle with parameters: X = 25, Y = 175, Angle = 325, Width = 250, Height = 125.
The center point is returned in outCenterPoint.