mirror of
https://github.com/love2d/love.git
synced 2026-08-18 03:34:23 +02:00
Added BezierCurve:getControlPointCount (resolves issue #759)
This commit is contained in:
@@ -73,6 +73,14 @@ public:
|
||||
**/
|
||||
void insertControlPoint(const Vector &point, int pos = -1);
|
||||
|
||||
/**
|
||||
* @returns Number of control points.
|
||||
**/
|
||||
size_t getControlPointCount() const
|
||||
{
|
||||
return controlPoints.size();
|
||||
}
|
||||
|
||||
/**
|
||||
* Move the curve.
|
||||
* @param t Translation vector.
|
||||
|
||||
Reference in New Issue
Block a user