#include <blobs.h>
Definition at line 49 of file blobs.h.
◆ TPOINT() [1/3]
◆ TPOINT() [2/3]
TPOINT::TPOINT |
( |
int16_t |
vx, |
|
|
int16_t |
vy |
|
) |
| |
|
inline |
◆ TPOINT() [3/3]
TPOINT::TPOINT |
( |
const ICOORD & |
ic | ) |
|
|
inline |
◆ cross()
int TPOINT::cross |
( |
const TPOINT & |
other | ) |
const |
|
inline |
Definition at line 77 of file blobs.h.
79 return x * other.
y -
y * other.
x;
◆ diff()
◆ dot()
int TPOINT::dot |
( |
const TPOINT & |
other | ) |
const |
|
inline |
Definition at line 82 of file blobs.h.
84 return x * other.
x +
y * other.
y;
◆ IsCrossed()
Definition at line 65 of file blobs.cpp.
67 TPOINT b0a1, b0a0, a1b1, b0b1, a1a0;
80 int b0a1xb0b1 = b0a1.
cross(b0b1);
81 int b0b1xb0a0 = b0b1.
cross(b0a0);
82 int a1b1xa1a0 = a1b1.
cross(a1a0);
85 int a1a0xa1b0 = -a1a0.
cross(b0a1);
87 return ((b0a1xb0b1 > 0 && b0b1xb0a0 > 0) ||
88 (b0a1xb0b1 < 0 && b0b1xb0a0 < 0)) &&
89 ((a1b1xa1a0 > 0 && a1a0xa1b0 > 0) || (a1b1xa1a0 < 0 && a1a0xa1b0 < 0));
◆ length()
int TPOINT::length |
( |
| ) |
const |
|
inline |
◆ operator+=()
void TPOINT::operator+= |
( |
const TPOINT & |
other | ) |
|
|
inline |
◆ operator/=()
void TPOINT::operator/= |
( |
int |
divisor | ) |
|
|
inline |
◆ operator==()
bool TPOINT::operator== |
( |
const TPOINT & |
other | ) |
const |
|
inline |
Definition at line 62 of file blobs.h.
64 return x == other.
x &&
y == other.
y;
The documentation for this struct was generated from the following files: