Flutter Engine
The Flutter Engine
Functions
fuchsia::math Namespace Reference

Functions

bool operator== (const fuchsia::math::SizeU &a, const fuchsia::math::SizeU &b)
 
bool operator== (const fuchsia::math::Inset &a, const fuchsia::math::Inset &b)
 
bool operator== (const fuchsia::math::Vec &a, const fuchsia::math::Vec &b)
 
bool operator== (const fuchsia::math::VecF &a, const fuchsia::math::VecF &b)
 
bool operator== (const fuchsia::math::Rect &a, const fuchsia::math::Rect &b)
 
bool operator== (const fuchsia::math::RectF &a, const fuchsia::math::RectF &b)
 
bool operator== (const std::optional< fuchsia::math::Rect > &a, const std::optional< fuchsia::math::Rect > &b)
 

Function Documentation

◆ operator==() [1/7]

bool fuchsia::math::operator== ( const fuchsia::math::Inset &  a,
const fuchsia::math::Inset &  b 
)
inline

Definition at line 36 of file fake_flatland_types.h.

37 {
38 return a.top == b.top && a.left == b.left && a.right == b.right &&
39 a.bottom == b.bottom;
40}
static bool b
struct MyStruct a[10]

◆ operator==() [2/7]

bool fuchsia::math::operator== ( const fuchsia::math::Rect &  a,
const fuchsia::math::Rect &  b 
)
inline

Definition at line 52 of file fake_flatland_types.h.

53 {
54 return a.x == b.x && a.y == b.y && a.width == b.width && a.height == b.height;
55}

◆ operator==() [3/7]

bool fuchsia::math::operator== ( const fuchsia::math::RectF &  a,
const fuchsia::math::RectF &  b 
)
inline

Definition at line 57 of file fake_flatland_types.h.

58 {
59 return a.x == b.x && a.y == b.y && a.width == b.width && a.height == b.height;
60}

◆ operator==() [4/7]

bool fuchsia::math::operator== ( const fuchsia::math::SizeU &  a,
const fuchsia::math::SizeU &  b 
)
inline

Definition at line 31 of file fake_flatland_types.h.

32 {
33 return a.width == b.width && a.height == b.height;
34}

◆ operator==() [5/7]

bool fuchsia::math::operator== ( const fuchsia::math::Vec &  a,
const fuchsia::math::Vec &  b 
)
inline

Definition at line 42 of file fake_flatland_types.h.

43 {
44 return a.x == b.x && a.y == b.y;
45}

◆ operator==() [6/7]

bool fuchsia::math::operator== ( const fuchsia::math::VecF &  a,
const fuchsia::math::VecF &  b 
)
inline

Definition at line 47 of file fake_flatland_types.h.

48 {
49 return a.x == b.x && a.y == b.y;
50}

◆ operator==() [7/7]

bool fuchsia::math::operator== ( const std::optional< fuchsia::math::Rect > &  a,
const std::optional< fuchsia::math::Rect > &  b 
)
inline

Definition at line 62 of file fake_flatland_types.h.

63 {
64 if (a.has_value() != b.has_value()) {
65 return false;
66 }
67 if (!a.has_value()) {
68 }
69 return a.value() == b.value();
70}