#include <DistanceMethodsf.h>
Static Public Member Functions | |
static GLfloat | distancePointPointf (const GLfloat a[3], const GLfloat b[3]) |
static GLfloat | squareDistancePointPointf (const GLfloat a[3], const GLfloat b[3]) |
static GLvoid | closestPointFromTriangleToPointf (GLfloat result[3], const GLfloat a[3], const GLfloat b[3], const GLfloat c[3], const GLfloat p[3]) |
static GLvoid ES3D::DistanceMethodsf::closestPointFromTriangleToPointf | ( | GLfloat | result[3], | |
const GLfloat | a[3], | |||
const GLfloat | b[3], | |||
const GLfloat | c[3], | |||
const GLfloat | p[3] | |||
) | [inline, static] |
Calculates the closest point from a triangle to a given point.
result | the closest point | |
a | point a | |
b | point b | |
c | point c | |
p | the point to calculate the closest point to |
static GLfloat ES3D::DistanceMethodsf::distancePointPointf | ( | const GLfloat | a[3], | |
const GLfloat | b[3] | |||
) | [inline, static] |
Distance between two points.
a | first point | |
b | second point |
static GLfloat ES3D::DistanceMethodsf::squareDistancePointPointf | ( | const GLfloat | a[3], | |
const GLfloat | b[3] | |||
) | [inline, static] |
Square distance between two points.
a | first point | |
b | second point |