YODAU 1.0
YEAR OF THE DEPEND ADULT UNDERGARMENT
Loading...
Searching...
No Matches
geometry.hpp File Reference
#include <memory>
#include <ostream>
#include <string>
#include <string_view>
#include <vector>
Include dependency graph for geometry.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  yodau::backend::point
 Point in percentage-based image coordinates. More...
struct  yodau::backend::line
 Polyline / polygon described in percentage coordinates. More...

Namespaces

namespace  yodau
namespace  yodau::backend

Typedefs

using yodau::backend::line_ptr = std::shared_ptr<line const>
 Shared, immutable line pointer.

Enumerations

enum class  yodau::backend::tripwire_dir { yodau::backend::any , yodau::backend::neg_to_pos , yodau::backend::pos_to_neg }
 Allowed crossing direction for a tripwire. More...

Functions

line_ptr yodau::backend::make_line (std::vector< point > points, std::string name, bool closed=false)
 Create and normalize a line.
std::vector< pointyodau::backend::parse_points (const std::string &points_str)
 Parse points from a textual representation.
std::string yodau::backend::normalize_str (std::string_view str)
 Remove whitespace and parentheses from a string.
float yodau::backend::parse_float (std::string_view num_str)
 Parse a float from a string view.