Keyframe: Replace pair vector w/ CoordinateVector

This commit is contained in:
FeRD (Frank Dana)
2020-12-04 12:06:26 -05:00
parent b280fbd082
commit deae5b2de2
3 changed files with 10 additions and 8 deletions

View File

@@ -129,9 +129,9 @@ Keyframe::Keyframe(double value) {
Keyframe::Keyframe(const std::vector<Point>& points) : Points(points) {};
// Constructor which takes a vector of std::pair tuples (and adds them all)
Keyframe::Keyframe(const std::vector<std::pair<double, double>>& coordinates) {
for (const auto& pair : coordinates) {
AddPoint(Point(pair.first, pair.second));
Keyframe::Keyframe(const std::vector<Coordinate>& coordinates) {
for (const auto& co : coordinates) {
AddPoint(Point(co));
}
}