MCPcopy Create free account
hub / github.com/Tencent/libpag / initialize

Method initialize

src/base/keyframes/SpatialPointKeyframe.cpp:22–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20
21namespace pag {
22void 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
29Point SpatialPointKeyframe::getValueAt(Frame time) {
30 auto progress = getProgress(time);

Callers 3

ScaleTimeRemapMethod · 0.45
BuildContentTimeRemapMethod · 0.45

Calls 2

initializeFunction · 0.85
MakeFunction · 0.50

Tested by

no test coverage detected