mirror of
https://github.com/love2d/love.git
synced 2026-08-18 11:44:15 +02:00
Add BezierCurve:getSegment(t1, t2)
Returns a BezierCurve that corresponds to the curve-segment between t1 and t2 on the original curve.
This commit is contained in:
@@ -113,6 +113,15 @@ public:
|
||||
**/
|
||||
Vector evaluate(double t) const;
|
||||
|
||||
/**
|
||||
* Get curve segment starting at t1 and ending at t2.
|
||||
* The new curve will be parametrized from 0 <= t <= 1.
|
||||
* @param t1 Start of the segment.
|
||||
* @param t2 End of the segment.
|
||||
* @returns Bezier curve covering the segment.
|
||||
*/
|
||||
BezierCurve* getSegment(double t1, double t2) const;
|
||||
|
||||
/**
|
||||
* Renders the curve by subdivision.
|
||||
* @param accuracy The 'fineness' of the curve.
|
||||
|
||||
Reference in New Issue
Block a user