123456789101112131415161718192021222324252627282930313233343536 |
- #pragma once
- #include <AP_Common/AP_Common.h>
- #include <AP_Math/AP_Math.h>
- class AC_PolyFence_loader
- {
- public:
-
- uint8_t max_points() const;
-
-
- void* create_point_array(uint8_t element_size);
-
- bool load_point_from_eeprom(uint16_t i, Vector2l& point);
-
- bool save_point_to_eeprom(uint16_t i, const Vector2l& point);
-
-
- template <typename T>
- bool boundary_valid(uint16_t num_points, const Vector2<T>* points) const;
-
-
- template <typename T>
- bool boundary_breached(const Vector2<T>& location, uint16_t num_points, const Vector2<T>* points) const;
- };
|