|
Core 1.0
|
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. | |
Implicit simplex decomposition of the place.
In the plane, the simplex shape is an equilateral triangle.
|
explicit |
Create a simplex array.
| s | Size. |
Compute the triangle containing the argument point.
| q | Point. |
|
inline |
Compute a point on the simplex structure.
| p | Integer point coordinates. |
|
inline |
Compute a point on the simplex structure.
| i,j | Integer coordinates. |