Rect::Center

Rect::Center
inline Point<T> Center() const;
Description

Center returns a point representing the center of the local rectangle. The following expression is used to determine the result:

   Point((x2 + x1)/2, (y2 + y1)/2)
Return Value

A Point representing the center of the local rectangle.

See Also