Rectangle

ภาพรวม

Rectangle เป็นคลาสใน Aspose.PDF FOSS สำหรับ C++.

คลาสนี้ให้ 28 เมธอดสำหรับทำงานกับออบเจกต์ Rectangle ในโปรแกรม C++ เมธอดที่มีให้รวมถึง: Center, Contains, ContainsLine, ContainsPoint, Empty, Equals, Height, Intersect, IsEmpty, IsIntersect, IsPoint, IsTrivial, และเมธอดเพิ่มเติมอีก 11 เมธอด สมาชิกสาธารณะทั้งหมดสามารถเข้าถึงได้จากแอปพลิเคชัน C++ ใด ๆ หลังจากติดตั้งแพคเกจ Aspose.PDF FOSS สำหรับ C++.

วิธีการ

ลายเซ็นคำอธิบาย
Equals(other: Rectangle) → boolเรียก Equals(other) บนอินสแตนซ์ Rectangle นี้.
NearEquals(other: Rectangle, delta: double) → boolเรียก NearEquals(other, delta) บนอินสแตนซ์ Rectangle นี้.
Intersect(otherRect: Rectangle) → Rectangleเรียก Intersect(otherRect) บนอินสแตนซ์ Rectangle นี้.
Join(otherRect: Rectangle) → Rectangleเรียก Join(otherRect) บนอินสแตนซ์ Rectangle นี้.
IsIntersect(otherRect: Rectangle) → boolเรียก IsIntersect(otherRect) บนอินสแตนซ์ Rectangle นี้.
Contains(point: Point, inclusive: bool) → boolเรียก Contains(point, inclusive) บนอินสแตนซ์ Rectangle นี้.
ContainsPoint(x: double, y: double) → boolเรียก ContainsPoint(x, y) บนอินสแตนซ์ Rectangle นี้.
ContainsLine(x1: double, y1: double, x2: double, y2: double) → boolเรียก ContainsLine(x1, y1, x2, y2) บนอินสแตนซ์ Rectangle นี้.
Center() → Pointเรียก Center บนอินสแตนซ์ Rectangle นี้.
Rotate(angle: Rotation)เรียก Rotate(angle) บนอินสแตนซ์ Rectangle นี้.
Rotate(angle: int)เรียก Rotate(angle) บนอินสแตนซ์ Rectangle นี้.
ToPoints() → std::vector<Point>เรียก ToPoints บนอินสแตนซ์ Rectangle นี้.
MoveBy(dx: double, dy: double)เรียก MoveBy(dx, dy) บนอินสแตนซ์ Rectangle นี้.
Width() → doubleเรียก Width บนอินสแตนซ์ Rectangle นี้.
Height() → doubleเรียก Height บนอินสแตนซ์ Rectangle นี้.
LLX() → doubleเรียก LLX บนอินสแตนซ์ Rectangle นี้.
LLX(value: double)เรียก LLX(value) บนอินสแตนซ์ Rectangle นี้.
LLY() → doubleเรียก LLY บนอินสแตนซ์ Rectangle นี้.
LLY(value: double)เรียก LLY(value) บนอินสแตนซ์ Rectangle นี้.
URX() → doubleเรียก URX บนอินสแตนซ์ Rectangle นี้.
URX(value: double)เรียก URX(value) บนอินสแตนซ์ Rectangle นี้.
URY() → doubleเรียก URY บนอินสแตนซ์ Rectangle นี้.
URY(value: double)เรียก URY(value) บนอินสแตนซ์ Rectangle นี้.
Empty() → Rectangleเรียก Empty บนอินสแตนซ์ Rectangle นี้.
Trivial() → Rectangleเรียก Trivial บนอินสแตนซ์ Rectangle นี้.
IsTrivial() → boolคืนค่า true หากตั้งค่า trivial แล้ว.
IsEmpty() → boolคืนค่า true หากตั้งค่า empty แล้ว.
IsPoint() → boolคืนค่า true หากตั้งค่า point แล้ว.

ดูเพิ่มเติม

 ภาษาไทย