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

Method Reciprocal

src/Fraction.cpp:78–82  ·  view source on GitHub ↗

Return the reciprocal as a new Fraction

Source from the content-addressed store, hash-verified

76
77// Return the reciprocal as a new Fraction
78Fraction Fraction::Reciprocal() const
79{
80 // flip the fraction
81 return Fraction(den, num);
82}

Callers 13

operator/Method · 0.80
OpenMethod · 0.80
FFmpegReader.cppFile · 0.80
SetVideoOptionsMethod · 0.80
WriteFrameMethod · 0.80
FrameNToTimeMethod · 0.80
TimelineMethod · 0.80
initMethod · 0.80
DisplayMethod · 0.80
GetSamplesPerFrameMethod · 0.80
SaveMethod · 0.80
ThumbnailMethod · 0.80

Calls 1

FractionClass · 0.85

Tested by

no test coverage detected