Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
regular_polygon_msan_probe.cc
Go to the documentation of this file.
1#include <polygon.H>
2
3using namespace Aleph;
4
6int main()
7{
8 const Regular_Polygon polygon;
9 if (polygon.size() != 0 or polygon.get_side_size() != 0 or
10 polygon.radius() != 0 or polygon.is_closed())
11 return 1;
12 return 0;
13}
A regular polygon defined by center, side length, and vertex count.
Definition polygon.H:1143
const size_t & size() const
Get the number of vertices.
Definition polygon.H:1204
const double & get_side_size() const
Get the side length.
Definition polygon.H:1196
bool is_closed() const noexcept
Check if the polygon is a valid closed regular polygon.
Definition polygon.H:1215
const double & radius() const
Get the circumradius.
Definition polygon.H:1208
Main namespace for Aleph-w library functions.
2D polygon representation and geometric operations.
int main()
Read every observable scalar in the default polygon under MSan.