Skip to main content
Table of Contents

TTMSFNCGraphicsPath.PointOnBezier Method

Evaluates a cubic Bezier segment at parameter T (0.0–1.0) using pre-computed coefficients.

API unit family: TMSFNCGraphicsTypes Declaring type: TTMSFNCGraphicsPath

Syntax

FMX.TMSFNCGraphicsTypes.hppPascalC++
function PointOnBezier(const StartPoint: TPointF; const AX, BX, CX, AY, BY, CY, T: Double): TPointF;
System::Types::TPointF __fastcall PointOnBezier(const System::Types::TPointF &StartPoint, const double AX, const double BX, const double CX, const double AY, const double BY, const double CY, const double T);

Parameters

Name Description
StartPoint Starting point of the Bezier segment.
AX X cubic coefficient.
BX X quadratic coefficient.
CX X linear coefficient.
AY Y cubic coefficient.
BY Y quadratic coefficient.
CY Y linear coefficient.
T Curve parameter in the range 0.0 (start) to 1.0 (end).

Returns

The point on the Bezier curve at parameter T.