Public Member Functions | Private Member Functions | Private Attributes | List of all members
gte::Polygon2< Real > Class Template Reference

#include <GtePolygon2.h>

Public Member Functions

Real ComputeArea () const
 
Real ComputePerimeterLength () const
 
Vector2< Real > ComputeVertexAverage () const
 
bool CounterClockwise () const
 
std::vector< int > const & GetIndices () const
 
Vector2< Real > const * GetVertexPool () const
 
std::set< int > const & GetVertices () const
 
bool IsConvex () const
 
bool IsSimple () const
 
 operator bool () const
 
 Polygon2 (Vector2< Real > const *vertexPool, int numIndices, int const *indices, bool counterClockwise)
 

Private Member Functions

bool IsConvexInternal () const
 
bool IsSimpleInternal () const
 

Private Attributes

bool mCounterClockwise
 
std::vector< intmIndices
 
Vector2< Real > const * mVertexPool
 
std::set< intmVertices
 

Detailed Description

template<typename Real>
class gte::Polygon2< Real >

Definition at line 46 of file GtePolygon2.h.

Constructor & Destructor Documentation

template<typename Real >
gte::Polygon2< Real >::Polygon2 ( Vector2< Real > const *  vertexPool,
int  numIndices,
int const *  indices,
bool  counterClockwise 
)

Definition at line 100 of file GtePolygon2.h.

Member Function Documentation

template<typename Real >
Real gte::Polygon2< Real >::ComputeArea ( ) const

Definition at line 193 of file GtePolygon2.h.

template<typename Real >
Real gte::Polygon2< Real >::ComputePerimeterLength ( ) const

Definition at line 176 of file GtePolygon2.h.

template<typename Real >
Vector2< Real > gte::Polygon2< Real >::ComputeVertexAverage ( ) const

Definition at line 161 of file GtePolygon2.h.

template<typename Real >
bool gte::Polygon2< Real >::CounterClockwise ( ) const
inline

Definition at line 155 of file GtePolygon2.h.

template<typename Real >
std::vector< int > const & gte::Polygon2< Real >::GetIndices ( ) const
inline

Definition at line 149 of file GtePolygon2.h.

template<typename Real >
Vector2< Real > const * gte::Polygon2< Real >::GetVertexPool ( ) const
inline

Definition at line 137 of file GtePolygon2.h.

template<typename Real >
std::set< int > const & gte::Polygon2< Real >::GetVertices ( ) const
inline

Definition at line 143 of file GtePolygon2.h.

template<typename Real >
bool gte::Polygon2< Real >::IsConvex ( ) const

Definition at line 234 of file GtePolygon2.h.

template<typename Real >
bool gte::Polygon2< Real >::IsConvexInternal ( ) const
private

Definition at line 286 of file GtePolygon2.h.

template<typename Real >
bool gte::Polygon2< Real >::IsSimple ( ) const

Definition at line 214 of file GtePolygon2.h.

template<typename Real >
bool gte::Polygon2< Real >::IsSimpleInternal ( ) const
private

Definition at line 254 of file GtePolygon2.h.

template<typename Real >
gte::Polygon2< Real >::operator bool ( ) const
inline

Definition at line 131 of file GtePolygon2.h.

Member Data Documentation

template<typename Real >
bool gte::Polygon2< Real >::mCounterClockwise
private

Definition at line 95 of file GtePolygon2.h.

template<typename Real >
std::vector<int> gte::Polygon2< Real >::mIndices
private

Definition at line 94 of file GtePolygon2.h.

template<typename Real >
Vector2<Real> const* gte::Polygon2< Real >::mVertexPool
private

Definition at line 92 of file GtePolygon2.h.

template<typename Real >
std::set<int> gte::Polygon2< Real >::mVertices
private

Definition at line 93 of file GtePolygon2.h.


The documentation for this class was generated from the following file:


geometric_tools_engine
Author(s): Yijiang Huang
autogenerated on Thu Jul 18 2019 04:00:06