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

Method isNear

src/Clip.cpp:1318–1321  ·  view source on GitHub ↗

Compare 2 floating point numbers for equality

Source from the content-addressed store, hash-verified

1316
1317// Compare 2 floating point numbers for equality
1318bool Clip::isNear(double a, double b)
1319{
1320 return fabs(a - b) < 0.000001;
1321}
1322
1323// Apply keyframes to the source frame (if any)
1324void Clip::apply_keyframes(std::shared_ptr<Frame> frame, QSize timeline_size) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected