Class RegularPolygon

Inheritance Relationships

Derived Types

Class Documentation

class RegularPolygon

Subclassed by sota::Hexagon, sota::Pentagon

Public Functions

inline RegularPolygon(Vector3 center, std::vector<Vector3> points, Vector3 normal)
inline RegularPolygon(Vector3 center, Vector3 normal)
RegularPolygon(const RegularPolygon &other) = default
RegularPolygon(RegularPolygon &&other) = default
RegularPolygon &operator=(const RegularPolygon &rhs) = default
RegularPolygon &operator=(RegularPolygon &&rhs) = default
virtual ~RegularPolygon() = default
inline Vector3 center() const
inline Vector3 normal() const
inline std::vector<Vector3> points() const
inline void add_point(const Vector3 &p)
void sort_points()
virtual void check() const = 0

Protected Attributes

Vector3 _center
std::vector<Vector3> _points
Vector3 _normal