#include <rational.h>
Public Member Functions | |
constexpr | Rational (int32_t num) |
constexpr | Rational (int32_t num, uint32_t den) |
int32_t | GetNumerator () const |
uint32_t | GetDenominator () const |
bool | operator== (const Rational &that) const |
bool | operator!= (const Rational &that) const |
bool | operator< (const Rational &that) const |
uint64_t | GetHash () const |
operator Scalar () const | |
Rational | Invert () const |
Definition at line 13 of file rational.h.
|
inlineexplicitconstexpr |
|
inlineconstexpr |
Definition at line 17 of file rational.h.
|
inline |
Definition at line 21 of file rational.h.
Referenced by impeller::TextFrame::RoundScaledFontSize().
uint64_t impeller::Rational::GetHash | ( | ) | const |
Definition at line 42 of file rational.cc.
Referenced by impeller::TextShadowCache::TextShadowCacheKey::Hash::operator()().
|
inline |
Definition at line 19 of file rational.h.
Referenced by impeller::TextFrame::RoundScaledFontSize().
Rational impeller::Rational::Invert | ( | ) | const |
Definition at line 50 of file rational.cc.
References Rational().
Referenced by impeller::TextContents::ComputeVertexData().
|
inlineexplicit |
Definition at line 31 of file rational.h.
bool impeller::Rational::operator!= | ( | const Rational & | that | ) | const |
Definition at line 28 of file rational.cc.
bool impeller::Rational::operator< | ( | const Rational & | that | ) | const |
Definition at line 32 of file rational.cc.
bool impeller::Rational::operator== | ( | const Rational & | that | ) | const |
Definition at line 18 of file rational.cc.