Files
libopenshot/src/Coordinate.cpp

21 lines
507 B
C++
Raw Normal View History

2011-10-11 08:44:27 -05:00
/**
* \file
* \brief Source code for the Coordinate class
* \author Copyright (c) 2011 Jonathan Thomas
*/
#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() :
X(0), Y(0), increasing(true), repeated(1,1) {
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) :
X(x), Y(y), increasing(true), repeated(1,1) {
2011-10-11 08:44:27 -05:00
}