2011-10-11 08:44:27 -05:00
|
|
|
/**
|
|
|
|
|
* \file
|
|
|
|
|
* \brief Source code for the Coordinate class
|
2013-09-08 23:09:54 -05:00
|
|
|
* \author Copyright (c) 2008-2013 OpenShot Studios, LLC
|
2011-10-11 08:44:27 -05:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#include "../include/Coordinate.h"
|
|
|
|
|
|
|
|
|
|
using namespace std;
|
|
|
|
|
using namespace openshot;
|
|
|
|
|
|
|
|
|
|
// Default constructor for a coordinate, which defaults the X and Y to zero (0,0)
|
|
|
|
|
Coordinate::Coordinate() :
|
2012-10-19 22:24:54 -05:00
|
|
|
X(0), Y(0), increasing(true), repeated(1,1), delta(0.0) {
|
2011-10-11 08:44:27 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Constructor which also allows the user to set the X and Y
|
|
|
|
|
Coordinate::Coordinate(float x, float y) :
|
2012-10-19 22:24:54 -05:00
|
|
|
X(x), Y(y), increasing(true), repeated(1,1), delta(0.0) {
|
2011-10-11 08:44:27 -05:00
|
|
|
}
|