Go to the source code of this file.
Classes | |
| class | vgl_polygon< T > |
| Store a polygon. More... | |
| class | vgl_point_2d< Type > |
| Represents a cartesian 2D point. More... | |
| class | vgl_box_2d< Type > |
| Represents a cartesian 2D box. More... | |
| class | vgl_oriented_box_2d< T > |
Macros | |
| #define | VGL_AREA_INSTANTIATE(T) extern "please include vgl/vgl_area.hxx instead" |
Functions | |
| template<class T > | |
| T | vgl_area_signed (vgl_polygon< T > const &poly) |
| Computes the signed area of a polygon. More... | |
| template<class T > | |
| T | vgl_area (vgl_polygon< T > const &poly) |
| The area of a polygon. More... | |
| template<class T > | |
| T | vgl_area_enforce_orientation (vgl_polygon< T > const &poly) |
| The orientation enforced area of a polygon. More... | |
| template<class T > | |
| vgl_point_2d< T > | vgl_centroid (vgl_polygon< T > const &poly) |
| The area weighted center of a polygon. More... | |
| template<class T > | |
| T | vgl_area (vgl_box_2d< T > const &box) |
| The area of an axis-aligned box. More... | |
| template<class T > | |
| T | vgl_area (vgl_oriented_box_2d< T > const &obox) |
| area of an oriented box. More... | |
| #define VGL_AREA_INSTANTIATE | ( | T | ) | extern "please include vgl/vgl_area.hxx instead" |
Definition at line 44 of file vgl_area.h.
| T vgl_area | ( | vgl_polygon< T > const & | poly | ) |
| T vgl_area | ( | vgl_box_2d< T > const & | box | ) |
The area of an axis-aligned box.
Definition at line 110 of file vgl_area.hxx.
| T vgl_area | ( | vgl_oriented_box_2d< T > const & | obox | ) |
area of an oriented box.
Definition at line 114 of file vgl_area.hxx.
| T vgl_area_enforce_orientation | ( | vgl_polygon< T > const & | poly | ) |
The orientation enforced area of a polygon.
Definition at line 61 of file vgl_area.hxx.
| T vgl_area_signed | ( | vgl_polygon< T > const & | poly | ) |
Computes the signed area of a polygon.
The sign is positive if the polygon is oriented counter-clockwise (in RH coordinate system) and negative otherwise. For "polygons" consisting of more than one contour, the result is valid only if the contours are oriented consistently. That is, an enclosed contour must have opposite orientation to the enclosing contour.
Definition at line 14 of file vgl_area.hxx.
| vgl_point_2d< T > vgl_centroid | ( | vgl_polygon< T > const & | poly | ) |
The area weighted center of a polygon.
In general this is different than the mean of the polygon's vertices
Definition at line 28 of file vgl_area.hxx.
1.8.15