wfmath 1.0.3
A math library for the Worldforge system.
WFMath::Poly2Orient< dim > Class Template Reference

Public Member Functions

 Poly2Orient (const Poly2Orient &p)
 
Poly2Orientoperator= (const Poly2Orient &p)=default
 
Point< dim > convert (const Point< 2 > &p) const
 
bool expand (const Point< dim > &pd, Point< 2 > &p2, CoordType epsilon=numeric_constants< CoordType >::epsilon())
 
Poly2Reorient reduce (const Polygon< 2 > &poly, size_t skip=std::numeric_limits< size_t >::max())
 
void shift (const Vector< dim > &v)
 
void rotate (const RotMatrix< dim > &m, const Point< dim > &p)
 
void rotate2 (const RotMatrix< dim > &m, const Point< 2 > &p)
 
void rotate (const Quaternion &q, const Point< 3 > &p)
 
void rotate2 (const Quaternion &q, const Point< 2 > &p)
 
Poly2Orient toParentCoords (const Point< dim > &origin, const RotMatrix< dim > &rotation=RotMatrix< dim >().identity()) const
 
Poly2Orient toParentCoords (const AxisBox< dim > &coords) const
 
Poly2Orient toParentCoords (const RotBox< dim > &coords) const
 
Poly2Orient toLocalCoords (const Point< dim > &origin, const RotMatrix< dim > &rotation=RotMatrix< dim >().identity()) const
 
Poly2Orient toLocalCoords (const AxisBox< dim > &coords) const
 
Poly2Orient toLocalCoords (const RotBox< dim > &coords) const
 
Poly2Orient< 3 > toParentCoords (const Point< 3 > &origin, const Quaternion &rotation) const
 
Poly2Orient< 3 > toLocalCoords (const Point< 3 > &origin, const Quaternion &rotation) const
 
Vector< dim > offset (const Point< dim > &pd, Point< 2 > &p2) const
 
bool checkContained (const Point< dim > &pd, Point< 2 > &p2) const
 
bool checkIntersect (const AxisBox< dim > &b, Point< 2 > &p2, bool proper) const
 
void rotate (const Quaternion &q, const Point< 3 > &p)
 
void rotate2 (const Quaternion &q, const Point< 2 > &p)
 

Friends

int Intersect (const Poly2Orient< dim > &, const Poly2Orient< dim > &, Poly2OrientIntersectData &)
 

Detailed Description

template<int dim>
class WFMath::Poly2Orient< dim >

Definition at line 213 of file polygon.h.

Constructor & Destructor Documentation

◆ Poly2Orient()

template<int dim>
WFMath::Poly2Orient< dim >::Poly2Orient ( const Poly2Orient< dim > &  p)
inline

Definition at line 217 of file polygon.h.

Member Function Documentation

◆ checkContained()

template<int dim>
bool WFMath::Poly2Orient< dim >::checkContained ( const Point< dim > &  pd,
Point< 2 > &  p2 
) const
inline

Definition at line 54 of file polygon_intersect.cpp.

◆ checkIntersect()

template<int dim>
bool WFMath::Poly2Orient< dim >::checkIntersect ( const AxisBox< dim > &  b,
Point< 2 > &  p2,
bool  proper 
) const

Definition at line 70 of file polygon_intersect.cpp.

◆ convert()

template<int dim>
Point< dim > WFMath::Poly2Orient< dim >::convert ( const Point< 2 > &  p) const
inline

Definition at line 60 of file polygon_funcs.h.

◆ expand()

template<int dim>
bool WFMath::Poly2Orient< dim >::expand ( const Point< dim > &  pd,
Point< 2 > &  p2,
CoordType  epsilon = numeric_constants<CoordType>::epsilon() 
)

Definition at line 79 of file polygon_funcs.h.

◆ offset()

template<int dim>
Vector< dim > WFMath::Poly2Orient< dim >::offset ( const Point< dim > &  pd,
Point< 2 > &  p2 
) const
inline

Definition at line 39 of file polygon_intersect.cpp.

◆ reduce()

template<int dim>
Poly2Reorient WFMath::Poly2Orient< dim >::reduce ( const Polygon< 2 > &  poly,
size_t  skip = std::numeric_limits<size_t>::max() 
)

Definition at line 119 of file polygon_funcs.h.

◆ rotate() [1/2]

void WFMath::Poly2Orient< 3 >::rotate ( const Quaternion q,
const Point< 3 > &  p 
)
inline

Definition at line 281 of file polygon_funcs.h.

◆ rotate() [2/2]

template<int dim>
void WFMath::Poly2Orient< dim >::rotate ( const RotMatrix< dim > &  m,
const Point< dim > &  p 
)
inline

Definition at line 249 of file polygon_funcs.h.

◆ rotate2() [1/2]

void WFMath::Poly2Orient< 3 >::rotate2 ( const Quaternion q,
const Point< 2 > &  p 
)
inline

Definition at line 290 of file polygon_funcs.h.

◆ rotate2() [2/2]

template<int dim>
void WFMath::Poly2Orient< dim >::rotate2 ( const RotMatrix< dim > &  m,
const Point< 2 > &  p 
)

Definition at line 258 of file polygon_funcs.h.

◆ shift()

template<int dim>
void WFMath::Poly2Orient< dim >::shift ( const Vector< dim > &  v)
inline

Definition at line 235 of file polygon.h.

◆ toLocalCoords() [1/4]

template<int dim>
Poly2Orient WFMath::Poly2Orient< dim >::toLocalCoords ( const AxisBox< dim > &  coords) const
inline

Definition at line 265 of file polygon.h.

◆ toLocalCoords() [2/4]

template<int dim>
Poly2Orient< 3 > WFMath::Poly2Orient< dim >::toLocalCoords ( const Point< 3 > &  origin,
const Quaternion rotation 
) const
inline

Definition at line 276 of file polygon.h.

◆ toLocalCoords() [3/4]

template<int dim>
Poly2Orient WFMath::Poly2Orient< dim >::toLocalCoords ( const Point< dim > &  origin,
const RotMatrix< dim > &  rotation = RotMatrix<dim>().identity() 
) const
inline

Definition at line 260 of file polygon.h.

◆ toLocalCoords() [4/4]

template<int dim>
Poly2Orient WFMath::Poly2Orient< dim >::toLocalCoords ( const RotBox< dim > &  coords) const
inline

Definition at line 267 of file polygon.h.

◆ toParentCoords() [1/4]

template<int dim>
Poly2Orient WFMath::Poly2Orient< dim >::toParentCoords ( const AxisBox< dim > &  coords) const
inline

Definition at line 249 of file polygon.h.

◆ toParentCoords() [2/4]

template<int dim>
Poly2Orient< 3 > WFMath::Poly2Orient< dim >::toParentCoords ( const Point< 3 > &  origin,
const Quaternion rotation 
) const
inline

Definition at line 273 of file polygon.h.

◆ toParentCoords() [3/4]

template<int dim>
Poly2Orient WFMath::Poly2Orient< dim >::toParentCoords ( const Point< dim > &  origin,
const RotMatrix< dim > &  rotation = RotMatrix<dim>().identity() 
) const
inline

Definition at line 245 of file polygon.h.

◆ toParentCoords() [4/4]

template<int dim>
Poly2Orient WFMath::Poly2Orient< dim >::toParentCoords ( const RotBox< dim > &  coords) const
inline

Definition at line 251 of file polygon.h.

Friends And Related Function Documentation

◆ Intersect

template<int dim>
int Intersect ( const Poly2Orient< dim > &  o1,
const Poly2Orient< dim > &  o2,
Poly2OrientIntersectData data 
)
friend

Definition at line 138 of file polygon_intersect.cpp.


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