Rectangle

Tổng quan

Rectangle là một lớp trong Aspose.PDF FOSS cho C++.

Lớp này cung cấp 28 phương thức để làm việc với các đối tượng Rectangle trong các chương trình C++. Các phương thức có sẵn bao gồm: Center, Contains, ContainsLine, ContainsPoint, Empty, Equals, Height, Intersect, IsEmpty, IsIntersect, IsPoint, IsTrivial, và 11 phương thức bổ sung. Tất cả các thành viên công khai đều có thể truy cập bởi bất kỳ ứng dụng C++ nào sau khi cài đặt gói Aspose.PDF FOSS cho C++.

Phương thức

Chữ kýMô tả
Equals(other: Rectangle) → boolGọi Equals(other) trên đối tượng Rectangle này.
NearEquals(other: Rectangle, delta: double) → boolGọi NearEquals(other, delta) trên đối tượng Rectangle này.
Intersect(otherRect: Rectangle) → RectangleGọi Intersect(otherRect) trên đối tượng Rectangle này.
Join(otherRect: Rectangle) → RectangleGọi Join(otherRect) trên đối tượng Rectangle này.
IsIntersect(otherRect: Rectangle) → boolGọi IsIntersect(otherRect) trên đối tượng Rectangle này.
Contains(point: Point, inclusive: bool) → boolGọi Contains(point, inclusive) trên đối tượng Rectangle này.
ContainsPoint(x: double, y: double) → boolGọi ContainsPoint(x, y) trên đối tượng Rectangle này.
ContainsLine(x1: double, y1: double, x2: double, y2: double) → boolGọi ContainsLine(x1, y1, x2, y2) trên đối tượng Rectangle này.
Center() → PointGọi Center trên đối tượng Rectangle này.
Rotate(angle: Rotation)Gọi Rotate(angle) trên đối tượng Rectangle này.
Rotate(angle: int)Gọi Rotate(angle) trên đối tượng Rectangle này.
ToPoints() → std::vector<Point>Gọi ToPoints trên đối tượng Rectangle này.
MoveBy(dx: double, dy: double)Gọi MoveBy(dx, dy) trên đối tượng Rectangle này.
Width() → doubleGọi Width trên đối tượng Rectangle này.
Height() → doubleGọi Height trên đối tượng Rectangle này.
LLX() → doubleGọi LLX trên đối tượng Rectangle này.
LLX(value: double)Gọi LLX(value) trên đối tượng Rectangle này.
LLY() → doubleGọi LLY trên đối tượng Rectangle này.
LLY(value: double)Gọi LLY(value) trên đối tượng Rectangle này.
URX() → doubleGọi URX trên đối tượng Rectangle này.
URX(value: double)Gọi URX(value) trên đối tượng Rectangle này.
URY() → doubleGọi URY trên đối tượng Rectangle này.
URY(value: double)Gọi URY(value) trên đối tượng Rectangle này.
Empty() → RectangleGọi Empty trên đối tượng Rectangle này.
Trivial() → RectangleGọi Trivial trên đối tượng Rectangle này.
IsTrivial() → boolTrả về true nếu trivial được đặt.
IsEmpty() → boolTrả về true nếu empty được đặt.
IsPoint() → boolTrả về true nếu point được đặt.

Xem thêm

 Tiếng Việt