Determine if point already exists
| 182 | |
| 183 | // Determine if point already exists |
| 184 | bool Keyframe::Contains(Point p) const { |
| 185 | std::vector<Point>::const_iterator i = |
| 186 | std::lower_bound(begin(Points), end(Points), p.co.X, IsPointBeforeX); |
| 187 | return i != end(Points) && i->co.X == p.co.X; |
| 188 | } |
| 189 | |
| 190 | // Get current point (or closest point) from the X coordinate (i.e. the frame number) |
| 191 | Point Keyframe::GetClosestPoint(Point p, bool useLeft) const { |
no outgoing calls
no test coverage detected