Functions for determining the distance to a simplex. More...
#include "Simplex.h"
#include "../../kernel/Line_2.h"
#include "../../kernel/Plane.h"
#include "simplex_distance.ipp"
Go to the source code of this file.
Functions | |
template<typename T > | |
void | project (const Simplex< 1, ads::FixedArray< 2, T >, T > &s2, const ads::FixedArray< 2, T > &x2, Simplex< 1, ads::FixedArray< 1, T >, T > *s1, ads::FixedArray< 1, T > *x1) |
Project the simplex and the point in 2-D to 1-D. | |
template<typename T > | |
void | project (const Simplex< 1, ads::FixedArray< 2, T >, T > &s2, const ads::FixedArray< 2, T > &x2, Simplex< 1, ads::FixedArray< 1, T >, T > *s1, ads::FixedArray< 1, T > *x1, ads::FixedArray< 1, T > *y1) |
Project the simplex and the point in 2-D to 1-D. | |
template<typename T > | |
void | project (const Simplex< 2, ads::FixedArray< 3, T >, T > &s3, const ads::FixedArray< 3, T > &x3, Simplex< 2, ads::FixedArray< 2, T >, T > *s2, ads::FixedArray< 2, T > *x2) |
Project the simplex and the point in 3-D to 2-D. | |
template<typename T > | |
void | project (const Simplex< 2, ads::FixedArray< 3, T >, T > &s3, const ads::FixedArray< 3, T > &x3, Simplex< 2, ads::FixedArray< 2, T >, T > *s2, ads::FixedArray< 2, T > *x2, ads::FixedArray< 1, T > *z1) |
Project the simplex and the point in 3-D to 2-D. |
Functions for determining the distance to a simplex.
void project | ( | const Simplex< 2, ads::FixedArray< 3, T >, T > & | s3, | |
const ads::FixedArray< 3, T > & | x3, | |||
Simplex< 2, ads::FixedArray< 2, T >, T > * | s2, | |||
ads::FixedArray< 2, T > * | x2, | |||
ads::FixedArray< 1, T > * | z1 | |||
) | [inline] |
Project the simplex and the point in 3-D to 2-D.
The first point in the 3-D simplex will be mapped to the origin; the second point will be mapped to the positive x axis. The triangle will have the positive orientation in the 2-D plane. The 3-D point will be mapped to the xy-plane.
s3 | is the 2-simplex in 3-D. | |
x3 | is the 3-D point. | |
s2 | is the mapped simplex, a 2-simplex in 2-D. | |
x2 | is the mapped point, a 2-D point. | |
z1 | is the normal offset of x3 from s3. |
void project | ( | const Simplex< 2, ads::FixedArray< 3, T >, T > & | s3, | |
const ads::FixedArray< 3, T > & | x3, | |||
Simplex< 2, ads::FixedArray< 2, T >, T > * | s2, | |||
ads::FixedArray< 2, T > * | x2 | |||
) | [inline] |
Project the simplex and the point in 3-D to 2-D.
The first point in the 3-D simplex will be mapped to the origin; the second point will be mapped to the positive x axis. The triangle will have the positive orientation in the 2-D plane. The 3-D point will be mapped to the xy-plane.
s3 | is the 2-simplex in 3-D. | |
x3 | is the 3-D point. | |
s2 | is the mapped simplex, a 2-simplex in 2-D. | |
x2 | is the mapped point, a 2-D point. |
void project | ( | const Simplex< 1, ads::FixedArray< 2, T >, T > & | s2, | |
const ads::FixedArray< 2, T > & | x2, | |||
Simplex< 1, ads::FixedArray< 1, T >, T > * | s1, | |||
ads::FixedArray< 1, T > * | x1, | |||
ads::FixedArray< 1, T > * | y1 | |||
) | [inline] |
Project the simplex and the point in 2-D to 1-D.
The first point in the 2-D simplex will be mapped to the origin; the second point will be mapped to the positive x axis. The 2-D point will be mapped to the x-axis.
s2 | is the 1-simplex in 2-D. | |
x2 | is the 2-D point. | |
s1 | is the mapped simplex, a 1-simplex in 1-D. | |
x1 | is the mapped point, a 1-D point. | |
y1 | is the normal offset of x2 from s2. |
void project | ( | const Simplex< 1, ads::FixedArray< 2, T >, T > & | s2, | |
const ads::FixedArray< 2, T > & | x2, | |||
Simplex< 1, ads::FixedArray< 1, T >, T > * | s1, | |||
ads::FixedArray< 1, T > * | x1 | |||
) | [inline] |
Project the simplex and the point in 2-D to 1-D.
The first point in the 2-D simplex will be mapped to the origin; the second point will be mapped to the positive x axis. The 2-D point will be mapped to the x-axis.
s2 | is the 1-simplex in 2-D. | |
x2 | is the 2-D point. | |
s1 | is the mapped simplex, a 1-simplex in 1-D. | |
x1 | is the mapped point, a 1-D point. |