Rectangle

Overview

Rectangle is a class in Aspose.PDF FOSS for C++.

This class provides 28 methods for working with Rectangle objects in C++ programs. Available methods include: Center, Contains, ContainsLine, ContainsPoint, Empty, Equals, Height, Intersect, IsEmpty, IsIntersect, IsPoint, IsTrivial, and 11 additional methods. All public members are accessible to any C++ application after installing the Aspose.PDF FOSS for C++ package.

Methods

SignatureDescription
Equals(other: Rectangle)boolCalls Equals(other) on this Rectangle instance.
NearEquals(other: Rectangle, delta: double)boolCalls NearEquals(other, delta) on this Rectangle instance.
Intersect(otherRect: Rectangle)RectangleCalls Intersect(otherRect) on this Rectangle instance.
Join(otherRect: Rectangle)RectangleCalls Join(otherRect) on this Rectangle instance.
IsIntersect(otherRect: Rectangle)boolCalls IsIntersect(otherRect) on this Rectangle instance.
Contains(point: Point, inclusive: bool)boolCalls Contains(point, inclusive) on this Rectangle instance.
ContainsPoint(x: double, y: double)boolCalls ContainsPoint(x, y) on this Rectangle instance.
ContainsLine(x1: double, y1: double, x2: double, y2: double)boolCalls ContainsLine(x1, y1, x2, y2) on this Rectangle instance.
Center()PointCalls Center on this Rectangle instance.
Rotate(angle: Rotation)Calls Rotate(angle) on this Rectangle instance.
Rotate(angle: int)Calls Rotate(angle) on this Rectangle instance.
ToPoints()std::vector<Point>Calls ToPoints on this Rectangle instance.
MoveBy(dx: double, dy: double)Calls MoveBy(dx, dy) on this Rectangle instance.
Width()doubleCalls Width on this Rectangle instance.
Height()doubleCalls Height on this Rectangle instance.
LLX()doubleCalls LLX on this Rectangle instance.
LLX(value: double)Calls LLX(value) on this Rectangle instance.
LLY()doubleCalls LLY on this Rectangle instance.
LLY(value: double)Calls LLY(value) on this Rectangle instance.
URX()doubleCalls URX on this Rectangle instance.
URX(value: double)Calls URX(value) on this Rectangle instance.
URY()doubleCalls URY on this Rectangle instance.
URY(value: double)Calls URY(value) on this Rectangle instance.
Empty()RectangleCalls Empty on this Rectangle instance.
Trivial()RectangleCalls Trivial on this Rectangle instance.
IsTrivial()boolReturns true if trivial is set.
IsEmpty()boolReturns true if empty is set.
IsPoint()boolReturns true if point is set.

See Also