Rectangle
概述
Rectangle 是 Aspose.PDF 为 C++ 提供的 FOSS 中的一个类。
此类提供 28 个用于在 C++ 程序中处理 Rectangle 对象的方法。可用的方法包括:Center、Contains、ContainsLine、ContainsPoint、Empty、Equals、Height、Intersect、IsEmpty、IsIntersect、IsPoint、IsTrivial,以及另外 11 个方法。安装 Aspose.PDF 为 C++ 提供的 FOSS 包后,所有公共成员对任何 C++ 应用程序均可访问。
方法
| 签名 | 描述 |
|---|---|
Equals(other: Rectangle) → bool | 在此 Rectangle 实例上调用 Equals(other)。 |
NearEquals(other: Rectangle, delta: double) → bool | 在此 Rectangle 实例上调用 NearEquals(other, delta)。 |
Intersect(otherRect: Rectangle) → Rectangle | 在此 Rectangle 实例上调用 Intersect(otherRect)。 |
Join(otherRect: Rectangle) → Rectangle | 在此 Rectangle 实例上调用 Join(otherRect)。 |
IsIntersect(otherRect: Rectangle) → bool | 在此 Rectangle 实例上调用 IsIntersect(otherRect)。 |
Contains(point: Point, inclusive: bool) → bool | 在此 Rectangle 实例上调用 Contains(point, inclusive)。 |
ContainsPoint(x: double, y: double) → bool | 在此 Rectangle 实例上调用 ContainsPoint(x, y)。 |
ContainsLine(x1: double, y1: double, x2: double, y2: double) → bool | 在此 Rectangle 实例上调用 ContainsLine(x1, y1, x2, y2)。 |
Center() → Point | 在此 Rectangle 实例上调用 Center。 |
Rotate(angle: Rotation) | 在此 Rectangle 实例上调用 Rotate(angle)。 |
Rotate(angle: int) | 在此 Rectangle 实例上调用 Rotate(angle)。 |
ToPoints() → std::vector<Point> | 在此 Rectangle 实例上调用 ToPoints。 |
MoveBy(dx: double, dy: double) | 在此 Rectangle 实例上调用 MoveBy(dx, dy)。 |
Width() → double | 在此 Rectangle 实例上调用 Width。 |
Height() → double | 在此 Rectangle 实例上调用 Height。 |
LLX() → double | 在此 Rectangle 实例上调用 LLX。 |
LLX(value: double) | 在此 Rectangle 实例上调用 LLX(value)。 |
LLY() → double | 在此 Rectangle 实例上调用 LLY。 |
LLY(value: double) | 在此 Rectangle 实例上调用 LLY(value)。 |
URX() → double | 在此 Rectangle 实例上调用 URX。 |
URX(value: double) | 在此 Rectangle 实例上调用 URX(value)。 |
URY() → double | 在此 Rectangle 实例上调用 URY。 |
URY(value: double) | 在此 Rectangle 实例上调用 URY(value)。 |
Empty() → Rectangle | 在此 Rectangle 实例上调用 Empty。 |
Trivial() → Rectangle | 在此 Rectangle 实例上调用 Trivial。 |
IsTrivial() → bool | 如果已设置 trivial,则返回 true。 |
IsEmpty() → bool | 如果已设置 empty,则返回 true。 |
IsPoint() → bool | 如果已设置 point,则返回 true。 |