Core 1.0
Simplex2 Class Reference

Implicit simplex decomposition of the place. More...

#include <simplex.h>

Public Member Functions

 Simplex2 (const double &=1.0)
 Create a simplex array.
 
 ~Simplex2 ()
 Empty.
 
double Size () const
 Return the size of the simplex structure.
 
Vector2 Vertex (int, int) const
 Compute a point on the simplex structure.
 
Vector2 Vertex (const QPoint &) const
 Compute a point on the simplex structure.
 
Triangle2 Corners (const Vector2 &) const
 Compute the triangle containing the argument point.
 

Protected Attributes

double size = 1.0
 Size.
 

Static Protected Attributes

static const double G2 = (3.0 - sqrt(3.0)) / 6.0
 Unskew factors for planar case.
 
static const Vector2 Y2 = Matrix2::RotationTwoThirdsPi * X2
 Local frame.
 

Detailed Description

Implicit simplex decomposition of the place.

In the plane, the simplex shape is an equilateral triangle.

Constructor & Destructor Documentation

◆ Simplex2()

Simplex2::Simplex2 ( const double & s = 1.0)
explicit

Create a simplex array.

Parameters
sSize.

Member Function Documentation

◆ Corners()

Triangle2 Simplex2::Corners ( const Vector2 & q) const

Compute the triangle containing the argument point.

Parameters
qPoint.

◆ Vertex() [1/2]

Vector2 Simplex2::Vertex ( const QPoint & p) const
inline

Compute a point on the simplex structure.

Parameters
pInteger point coordinates.

◆ Vertex() [2/2]

Vector2 Simplex2::Vertex ( int i,
int j ) const
inline

Compute a point on the simplex structure.

Parameters
i,jInteger coordinates.