#include <Point.h>
Definition at line 10 of file Point.h.
◆ DifferenceTooBig()
bool bentleyottmann::Point::DifferenceTooBig |
( |
Point |
p0, |
|
|
Point |
p1 |
|
) |
| |
|
static |
Definition at line 46 of file Point.cpp.
46 {
47 auto tooBig = [](int32_t
a, int32_t
b) {
50 };
51
52 return tooBig(p0.x, p1.x) || tooBig(p0.y, p1.y);
53}
static float max(float r, float g, float b)
static float min(float r, float g, float b)
◆ Largest()
Point bentleyottmann::Point::Largest |
( |
| ) |
|
|
static |
Definition at line 41 of file Point.cpp.
41 {
43 return {kMaxCoordinate, kMaxCoordinate};
44}
◆ Smallest()
Point bentleyottmann::Point::Smallest |
( |
| ) |
|
|
static |
Definition at line 36 of file Point.cpp.
36 {
38 return {kMinCoordinate, kMinCoordinate};
39}
◆ operator!=
bool operator!= |
( |
const Point & |
p0, |
|
|
const Point & |
p1 |
|
) |
| |
|
friend |
Definition at line 32 of file Point.cpp.
32 {
33 return !(p0 == p1);
34}
◆ operator+
Definition at line 30 of file Point.h.
30 {
31 return {p0.x + p1.x, p0.y + p1.y};
32 }
◆ operator-
Definition at line 33 of file Point.h.
33 {
34 return {p0.x - p1.x, p0.y - p1.y};
35 }
◆ operator<
bool operator< |
( |
const Point & |
p0, |
|
|
const Point & |
p1 |
|
) |
| |
|
friend |
Definition at line 12 of file Point.cpp.
12 {
13 return std::tie(p0.y, p0.x) < std::tie(p1.y, p1.x);
14}
◆ operator<=
bool operator<= |
( |
const Point & |
p0, |
|
|
const Point & |
p1 |
|
) |
| |
|
friend |
Definition at line 24 of file Point.cpp.
24 {
25 return !(p0 > p1);
26}
◆ operator==
bool operator== |
( |
const Point & |
p0, |
|
|
const Point & |
p1 |
|
) |
| |
|
friend |
Definition at line 28 of file Point.cpp.
28 {
29 return std::tie(p0.y, p0.x) == std::tie(p1.y, p1.x);
30}
◆ operator>
bool operator> |
( |
const Point & |
p0, |
|
|
const Point & |
p1 |
|
) |
| |
|
friend |
Definition at line 16 of file Point.cpp.
16 {
17 return p1 < p0;
18}
◆ operator>=
bool operator>= |
( |
const Point & |
p0, |
|
|
const Point & |
p1 |
|
) |
| |
|
friend |
Definition at line 20 of file Point.cpp.
20 {
21 return !(p0 < p1);
22}
int32_t bentleyottmann::Point::x |
int32_t bentleyottmann::Point::y |
The documentation for this struct was generated from the following files:
- third_party/skia/modules/bentleyottmann/include/Point.h
- third_party/skia/modules/bentleyottmann/src/Point.cpp