Get the change in Y value (from the previous Y value)
| 397 | |
| 398 | // Get the change in Y value (from the previous Y value) |
| 399 | double Keyframe::GetDelta(int64_t index) const { |
| 400 | if (index < 1) return 0.0; |
| 401 | if (index == 1 && !Points.empty()) return Points[0].co.Y; |
| 402 | if (index > GetLength()) return 1.0; |
| 403 | return GetValue(index) - GetValue(index - 1); |
| 404 | } |
| 405 | |
| 406 | // Get a point at a specific index |
| 407 | Point const & Keyframe::GetPoint(int64_t index) const { |
no outgoing calls
no test coverage detected