ES3D::DistanceMethodsx Class Reference

#include <DistanceMethodsx.h>

List of all members.

Static Public Member Functions

static FixedPointx distancePointPointx (const FixedPointx a[3], const FixedPointx b[3])
static FixedPointx squareDistancePointPointx (const FixedPointx a[3], const FixedPointx b[3])
static GLvoid closestPointFromTriangleToPointx (FixedPointx result[3], const FixedPointx a[3], const FixedPointx b[3], const FixedPointx c[3], const FixedPointx p[3])


Detailed Description

Class which provides basic distance methods.


Member Function Documentation

static GLvoid ES3D::DistanceMethodsx::closestPointFromTriangleToPointx ( FixedPointx  result[3],
const FixedPointx  a[3],
const FixedPointx  b[3],
const FixedPointx  c[3],
const FixedPointx  p[3] 
) [inline, static]

Calculates the closest point from a triangle to a given point.

Parameters:
result the closest point
a point a
b point b
c point c
p the point to calculate the closest point to

static FixedPointx ES3D::DistanceMethodsx::distancePointPointx ( const FixedPointx  a[3],
const FixedPointx  b[3] 
) [inline, static]

Distance between two points.

Parameters:
a first point
b second point
Returns:
the distance

static FixedPointx ES3D::DistanceMethodsx::squareDistancePointPointx ( const FixedPointx  a[3],
const FixedPointx  b[3] 
) [inline, static]

Square distance between two points.

Parameters:
a first point
b second point
Returns:
the square distance


The documentation for this class was generated from the following file:
Generated on Sat May 10 16:30:55 2008 for ES 3D Game SDK Documentation by  doxygen 1.4.7