#include "VectorTypes.h"
#include <cmath>
#include <cstdlib>
Go to the source code of this file.
| #define M_PI 3.14159265358979323846f |
The value of pi approximation.
| #define NUMBER_OF_CUBE_FACES (6) |
Number of faces which make up a cubic shape.
| #define NUMBER_OF_POINT_COORDINATES (3) |
Number of coordinates for a point in 3D space.
| #define NUMBER_OF_TRIANGLE_VERTICES (3) |
Number of vertices which make up a traingle shape.
| #define NUMBER_OF_TRIANGLES_IN_QUAD (2) |
Number of triangles which make up a quad.
Convert an angle in degrees to radians.
- Parameters
-
| degrees | The angle (in degrees) to convert to radians. |
- Returns
- As per description.
| float getDistanceBetweenPointsIn3DSpace |
( |
Vec3f |
startPoint, |
|
|
Vec3f |
endPoint |
|
) |
| |
|
inline |
Calculates the Euclidean distance between two points in 3D space.
- Parameters
-
| startPoint | Coordinates of a start point in 3D space. |
| endPoint | Coordinates of an end point in 3D space. |
- Returns
- As per description.
Convert an angle in radians to degrees.
- Parameters
-
| radians | The angle (in radians) to convert to degrees. |
- Returns
- As per description.