Object TAffineBox
Unit
Declaration
type TAffineBox = object(TObject)
Description
Object representing an affine box.
Box is defined by three corner points (top-left, top-tight, bottom-left).
Hierarchy
- TObject
- TAffineBox
Overview
Fields
![]() |
BottomLeft: TPointF; |
![]() |
TopLeft: TPointF; |
![]() |
TopRight: TPointF; |
Methods
![]() |
class function AffineBox(ARectF: TRectF): TAffineBox; overload; static; |
![]() |
class function AffineBox(ATopLeft, ATopRight, ABottomLeft: TPointF): TAffineBox; overload; static; |
![]() |
function Contains(APoint: TPointF): boolean; |
![]() |
class function EmptyBox: TAffineBox; static; |
![]() |
procedure Inflate(AHoriz, AVert: single); |
![]() |
procedure Offset(AOfsX, AOfsY: single); overload; |
![]() |
procedure Offset(AOfs: TPointF); overload; |
Properties
![]() |
property AsPolygon: ArrayOfTPointF read GetAsPolygon; |
![]() |
property BottomRight: TPointF read GetBottomRight; |
![]() |
property Center: TPointF read GetCenter; |
![]() |
property Height: single read GetHeight; |
![]() |
property IsEmpty: boolean read GetIsEmpty; |
![]() |
property RectBounds: TRect read GetRectBounds; |
![]() |
property RectBoundsF: TRectF read GetRectBoundsF; |
![]() |
property Surface: single read GetSurface; |
![]() |
property Width: single read GetWidth; |
Description
Fields
![]() |
BottomLeft: TPointF; |
|
Bottom-left corner of the affine box | |
![]() |
TopLeft: TPointF; |
|
Top-left corner of the affine box | |
![]() |
TopRight: TPointF; |
|
Top-right corner of the affine box | |
Methods
![]() |
class function AffineBox(ARectF: TRectF): TAffineBox; overload; static; |
|
Creates an affine box from a TRectF structure | |
![]() |
class function AffineBox(ATopLeft, ATopRight, ABottomLeft: TPointF): TAffineBox; overload; static; |
|
Creates an affine box defined by three corner points | |
![]() |
function Contains(APoint: TPointF): boolean; |
|
Checks if a point is contained within the affine box | |
![]() |
class function EmptyBox: TAffineBox; static; |
|
Creates an empty affine box | |
![]() |
procedure Inflate(AHoriz, AVert: single); |
|
Inflates the affine box along its axes by specified horizontal and vertical amounts | |
![]() |
procedure Offset(AOfsX, AOfsY: single); overload; |
|
Offsets the affine box by specified X and Y amounts | |
![]() |
procedure Offset(AOfs: TPointF); overload; |
|
Offsets the affine box by a specified point | |
Properties
![]() |
property AsPolygon: ArrayOfTPointF read GetAsPolygon; |
|
Affine box as an array of points (polygon) | |
![]() |
property BottomRight: TPointF read GetBottomRight; |
|
Bottom-right corner of the affine box | |
![]() |
property Center: TPointF read GetCenter; |
|
| |
![]() |
property Height: single read GetHeight; |
|
| |
![]() |
property IsEmpty: boolean read GetIsEmpty; |
|
Check if the affine box is empty (containing empty points, not just of zero size) | |
![]() |
property RectBounds: TRect read GetRectBounds; |
|
Bounding rectangle as TRect | |
![]() |
property RectBoundsF: TRectF read GetRectBoundsF; |
|
Bounding rectangle as TRectF | |
![]() |
property Surface: single read GetSurface; |
|
| |
![]() |
property Width: single read GetWidth; |
|
| |
