header_utils
Loading...
Searching...
No Matches
Polygon

Polygons and polygon triangulation; NOTE: Triangulation features are not currently implemented. More...

Classes

struct  ghassanpl::geometry::tpolygon< T >
 Represents a 2D polygon polygon_shape. More...
struct  ghassanpl::geometry::polygon_triangulation< T, IDX >
 The results of a triangulation of an external tpolygon<T>. More...
struct  ghassanpl::geometry::triangulated_polygon< T, IDX >
 Contains both a tpolygon<T> as well as its triangulation. More...
struct  ghassanpl::geometry::immutable::tpolygon< T >
 An immutable version of tpolygon that performs and caches its triangulation lazily upon request. More...
struct  ghassanpl::geometry::tpolyline< T >
 TODO: Polyline. More...

Typedefs

using ghassanpl::geometry::polygon

Functions

template<indexable_polygonlike POLY, typename IDX_TYPE = size_t>
auto ghassanpl::geometry::calculate_indexed_triangle_area (POLY const &poly, tindexed_triangle< IDX_TYPE > const &triangle)
template<typename TR>
auto ghassanpl::geometry::calculate_total_area (TR const &trpoly)
template<typename T>
polygon_triangulation< T > ghassanpl::geometry::triangulate (tpolygon< T > const &poly)

Detailed Description

Polygons and polygon triangulation; NOTE: Triangulation features are not currently implemented.


Class Documentation

◆ ghassanpl::geometry::tpolyline

struct ghassanpl::geometry::tpolyline
template<std::floating_point T>
struct ghassanpl::geometry::tpolyline< T >

TODO: Polyline.

Definition at line 616 of file polygon.h.

Typedef Documentation

◆ polygon

using ghassanpl::geometry::polygon

Definition at line 295 of file polygon.h.

Function Documentation

◆ calculate_indexed_triangle_area()

template<indexable_polygonlike POLY, typename IDX_TYPE = size_t>
auto ghassanpl::geometry::calculate_indexed_triangle_area ( POLY const & poly,
tindexed_triangle< IDX_TYPE > const & triangle )

Definition at line 359 of file polygon.h.

◆ calculate_total_area()

template<typename TR>
auto ghassanpl::geometry::calculate_total_area ( TR const & trpoly)

Definition at line 369 of file polygon.h.

◆ triangulate()

template<typename T>
polygon_triangulation< T > ghassanpl::geometry::triangulate ( tpolygon< T > const & poly)

Definition at line 489 of file polygon.h.