add removeControlPoint; improve exception handling

This commit is contained in:
muddmaker
2014-12-22 17:57:44 -08:00
parent 637908ab43
commit 2c5f7dc896
4 changed files with 39 additions and 13 deletions
+6 -2
View File
@@ -25,8 +25,6 @@
#include "common/Object.h"
#include "common/Vector.h"
#include <vector>
#include <map>
#include <memory>
namespace love
{
@@ -75,6 +73,12 @@ public:
**/
void insertControlPoint(const Vector &point, int pos = -1);
/**
* Remove the i'th control point from the curve.
* @param i Control point to remove
**/
void removeControlPoint(int i);
/**
* @returns Number of control points.
**/