| 20 | |
| 21 | namespace pag { |
| 22 | void SpatialPointKeyframe::initialize() { |
| 23 | SingleEaseKeyframe<Point>::initialize(); |
| 24 | auto point1 = Point::Make(startValue.x + spatialOut.x, startValue.y + spatialOut.y); |
| 25 | auto point2 = Point::Make(endValue.x + spatialIn.x, endValue.y + spatialIn.y); |
| 26 | spatialBezier = BezierPath::Build(startValue, point1, point2, endValue, 0.05f); |
| 27 | } |
| 28 | |
| 29 | Point SpatialPointKeyframe::getValueAt(Frame time) { |
| 30 | auto progress = getProgress(time); |
no test coverage detected