37 {
Vector2l(-266398870, 1518220000),
true },
38 {
Vector2l(-266418700, 1518709260),
false },
39 {
Vector2l(-350000000, 1490000000),
true },
41 {
Vector2l(-265768150, 1518408250),
false },
42 {
Vector2l(-265774060, 1518405860),
true },
43 {
Vector2l(-266435630, 1518303440),
true },
44 {
Vector2l(-266435650, 1518313540),
false },
45 {
Vector2l(-266435690, 1518303530),
false },
46 {
Vector2l(-266435690, 1518303490),
true },
47 {
Vector2l(-265875990, 1518344049),
true },
48 {
Vector2l(-265875990, 1518344051),
false },
49 {
Vector2l(-266454781, 1518820530),
true },
50 {
Vector2l(-266454779, 1518820530),
true },
51 {
Vector2l(-266092109, 1518747420),
true },
52 {
Vector2l(-266092111, 1518747420),
false },
53 {
Vector2l(-266092110, 1518747421),
true },
54 {
Vector2l(-266092110, 1518747419),
false },
55 {
Vector2l(-266092111, 1518747421),
true },
56 {
Vector2l(-266092109, 1518747421),
true },
57 {
Vector2l(-266092111, 1518747419),
false },
66 bool all_passed =
true;
87 result ?
"OUTSIDE" :
"INSIDE ",
88 result ==
test_points[i].outside ?
"PASS" :
"FAIL");
93 hal.
console->
printf(
"%s\n", all_passed ?
"TEST PASSED" :
"TEST FAILED");
97 for (count = 0; count < 1000; count++) {
108 hal.
console->
printf(
"%s\n", all_passed ?
"ALL TESTS PASSED" :
"TEST FAILED");
struct timespec start_time
bool Polygon_complete(const Vector2< T > *V, unsigned n)
AP_HAL::UARTDriver * console
virtual void printf(const char *,...) FMT_PRINTF(2
static const Vector2l OBC_boundary[]
const AP_HAL::HAL & hal
-*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-
Vector2< int32_t > Vector2l
bool Polygon_outside(const Vector2< T > &P, const Vector2< T > *V, unsigned n)
static const struct @132 test_points[]