MCPcopy Create free account
hub / github.com/OpenShot/libopenshot / GetPreviousPoint

Method GetPreviousPoint

src/KeyFrame.cpp:226–242  ·  view source on GitHub ↗

Get previous point (if any)

Source from the content-addressed store, hash-verified

224
225// Get previous point (if any)
226Point Keyframe::GetPreviousPoint(Point p) const {
227
228 // Lookup the index of this point
229 try {
230 int64_t index = FindIndex(p);
231
232 // If not the 1st point
233 if (index > 0)
234 return Points[index - 1];
235 else
236 return Points[0];
237
238 } catch (const OutOfBoundsPoint& e) {
239 // No previous point
240 return Point(-1, -1);
241 }
242}
243
244// Get max point (by Y coordinate)
245Point Keyframe::GetMaxPoint() const {

Callers 3

add_property_jsonMethod · 0.80
add_property_jsonMethod · 0.80
KeyFrame.cppFile · 0.80

Calls 1

PointClass · 0.85

Tested by

no test coverage detected