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

Method UpdatePoint

src/KeyFrame.cpp:462–468  ·  view source on GitHub ↗

Replace an existing point with a new point

Source from the content-addressed store, hash-verified

460
461// Replace an existing point with a new point
462void Keyframe::UpdatePoint(int64_t index, Point p) {
463 // Remove matching point
464 RemovePoint(index);
465
466 // Add new point
467 AddPoint(p);
468}
469
470void Keyframe::PrintPoints(std::ostream* out) const {
471 *out << std::right << std::setprecision(4) << std::setfill(' ');

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected