Object TQuadraticBezierCurve
Unit
Declaration
type TQuadraticBezierCurve = object(TObject)
Description
Definition of a Bézier curve of order 2. It has one control point
Hierarchy
- TObject
- TQuadraticBezierCurve
Overview
Fields
![]() |
c: TPointF; |
![]() |
p1: TPointF; |
![]() |
p2: TPointF; |
Methods
![]() |
function ComputeLength: single; |
![]() |
function ComputePointAt(t: single): TPointF; |
![]() |
function GetBounds: TRectF; |
![]() |
function ToPoints(AAcceptedDeviation: single = 0.1; AIncludeFirstPoint: boolean = true): ArrayOfTPointF; |
![]() |
procedure CopyToPath(ADest: IBGRAPath); |
![]() |
procedure Split(out ALeft, ARight: TQuadraticBezierCurve); |
Description
Fields
![]() |
c: TPointF; |
Control point (not reached by the curve) |
![]() |
p1: TPointF; |
Starting point (reached) |
![]() |
p2: TPointF; |
Ending point (reached) |
Methods
![]() |
function ComputeLength: single; |
Compute the exact length of the curve |
![]() |
function ComputePointAt(t: single): TPointF; |
Computes the point at time t, varying from 0 to 1 |
![]() |
function GetBounds: TRectF; |
Computes the rectangular bounds |
![]() |
function ToPoints(AAcceptedDeviation: single = 0.1; AIncludeFirstPoint: boolean = true): ArrayOfTPointF; |
Computes a polygonal approximation of the curve. AAcceptedDeviation indicates the maximum orthogonal distance that is ignored and approximated by a straight line. AIncludeFirstPoint indicates if the first point must be included in the array |
![]() |
procedure CopyToPath(ADest: IBGRAPath); |
Copy the curve to the given path |
![]() |
procedure Split(out ALeft, ARight: TQuadraticBezierCurve); |
|