#include <intproto.h>
Definition at line 131 of file intproto.h.
◆ INT_FEATURE_STRUCT() [1/3]
INT_FEATURE_STRUCT::INT_FEATURE_STRUCT |
( |
| ) |
|
|
inline |
◆ INT_FEATURE_STRUCT() [2/3]
INT_FEATURE_STRUCT::INT_FEATURE_STRUCT |
( |
const FCOORD & |
pos, |
|
|
uint8_t |
theta |
|
) |
| |
Builds a feature from an FCOORD for position with all the necessary clipping and rounding.
Definition at line 205 of file intproto.cpp.
207 :
X(ClipToRange<int16_t>(static_cast<int16_t>(pos.
x() + 0.5), 0, 255)),
208 Y(ClipToRange<int16_t>(static_cast<int16_t>(pos.
y() + 0.5), 0, 255)),
◆ INT_FEATURE_STRUCT() [3/3]
INT_FEATURE_STRUCT::INT_FEATURE_STRUCT |
( |
int |
x, |
|
|
int |
y, |
|
|
int |
theta |
|
) |
| |
Builds a feature from ints with all the necessary clipping and casting.
Definition at line 212 of file intproto.cpp.
214 :
X(static_cast<uint8_t>(ClipToRange<int>(x, 0, UINT8_MAX))),
215 Y(static_cast<uint8_t>(ClipToRange<int>(y, 0, UINT8_MAX))),
216 Theta(static_cast<uint8_t>(ClipToRange<int>(theta, 0, UINT8_MAX))),
◆ print()
void INT_FEATURE_STRUCT::print |
( |
| ) |
const |
|
inline |
◆ CP_misses
int8_t INT_FEATURE_STRUCT::CP_misses |
◆ Theta
uint8_t INT_FEATURE_STRUCT::Theta |
uint8_t INT_FEATURE_STRUCT::X |
uint8_t INT_FEATURE_STRUCT::Y |
The documentation for this struct was generated from the following files: