Class TRationalBezierCurve
Unit
CastleCurves
Declaration
type TRationalBezierCurve = class(TControlPointsCurve)
Description
Rational Bezier curve (Bezier curve with weights). Note: for Bezier Curve ControlPoints.Count MAY be 1. (For TControlPointsCurve it must be >= 2)
Hierarchy
Overview
Fields
Methods
Description
Fields
 |
Weights: TFloatList; |
Curve weights. Must always be Weights.Count = ControlPoints.Count. After changing Weights you also have to call UpdateControlPoints.
|
Methods
 |
procedure Split(const Proportion: Float; var B1, B2: TRationalBezierCurve); |
Splits this curve using Casteljau algorithm.
Under B1 and B2 returns two new, freshly created, bezier curves, such that if you concatenate them - they will create this curve. Proportion is something from (0; 1). B1 will be equal to Self for T in TBegin .. TMiddle, B2 will be equal to Self for T in TMiddle .. TEnd, where TMiddle = TBegin + Proportion * (TEnd - TBegin).
B1.ControlPoints.Count = B2.ControlPoints.Count = Self.ControlPoints.Count.
|
 |
class function NiceClassName: string; override; |
|
 |
procedure UpdateControlPoints; override; |
|
 |
constructor Create(const ATBegin, ATEnd: Float); override; |
|
 |
destructor Destroy; override; |
|
Generated by PasDoc 0.13.0 on 2013-08-17 21:27:12
|