Merge pull request #358 from SuslikV/patch-4

Clarify some comments
This commit is contained in:
Frank Dana
2019-11-02 21:30:41 -04:00
committed by GitHub
3 changed files with 4 additions and 4 deletions

View File

@@ -98,7 +98,7 @@ namespace openshot {
/// Default constructor for the Keyframe class
Keyframe();
/// Constructor which sets the default point & coordinate at X=0
/// Constructor which sets the default point & coordinate at X=1
Keyframe(double value);
/// Add a new point on the key-frame. Each point has a primary coordinate, a left handle, and a right handle.

View File

@@ -55,7 +55,7 @@ void Keyframe::ReorderPoints() {
}
}
// Constructor which sets the default point & coordinate at X=0
// Constructor which sets the default point & coordinate at X=1
Keyframe::Keyframe(double value) : needs_update(true) {
// Init the factorial table, needed by bezier curves
CreateFactorialTable();

View File

@@ -33,7 +33,7 @@
using namespace std;
using namespace openshot;
// Default constructor (defaults to 0,0)
// Default constructor (defaults to 1,0)
Point::Point() : interpolation(BEZIER), handle_type(AUTO)
{
// set new coorinate
@@ -43,7 +43,7 @@ Point::Point() : interpolation(BEZIER), handle_type(AUTO)
Initialize_Handles();
}
// Constructor which creates a single coordinate at X=0
// Constructor which creates a single coordinate at X=1
Point::Point(float y) :
interpolation(CONSTANT), handle_type(AUTO) {
// set new coorinate