flimEngine
|
A flim mathematics. More...
#include <MathTools.h>
Static Public Member Functions | |
static bool | Intersect (const CollisionVolumeBSphere &A, const CollisionVolumeBSphere &B) |
Intersection math for two bspheres. More... | |
static bool | Intersect (const CollisionVolumeBSphere &A, const Vect &P) |
Intersects. More... | |
static bool | Intersect (const CollisionVolumeBSphere &A, const CollisionVolumeAABB &B) |
Intersects. More... | |
static bool | Intersect (const CollisionVolumeBSphere &A, const CollisionVolumeOBB &B) |
Intersects. More... | |
static bool | Intersect (const CollisionVolumeAABB &A, const CollisionVolumeOBB &B) |
Intersects. More... | |
static bool | Intersect (const CollisionVolumeOBB &A, const CollisionVolumeOBB &B) |
Intersects. More... | |
static bool | Intersect (const CollisionVolumeAABB &A, const CollisionVolumeAABB &B) |
Intersects. More... | |
static bool | Intersect (const CollisionVolumeOcclusionLine &A, const CollisionVolumeBSphere &B) |
Intersects. More... | |
static bool | Intersect (const CollisionVolumeOcclusionLine &A, const CollisionVolumeOBB &B) |
Intersects. More... | |
static bool | Intersect (const CollisionVolumeOcclusionLine &A, const CollisionVolumeAABB &B) |
Intersects. More... | |
static bool | Intersect (const CollisionVolumeOcclusionLine &A, const CollisionVolumeOcclusionLine &B) |
Intersects. More... | |
static bool | Intersect (Collidable *A, Collidable *B) |
Intersects. More... | |
static bool | Intersect (const CollisionVolume &A, const CollisionVolumeAABB &B) |
Intersects. More... | |
static const Vect | getMin (Vect *, int) |
Finds the min of the given arguments. More... | |
static const Vect | getMax (Vect *, int) |
Finds the max of the given arguments. More... | |
static const errcode | getMinComponent (Vect &vector, float &x, float &y, float &z) |
Gets minimum component. More... | |
static const errcode | getMaxComponent (Vect &vector, float &x, float &y, float &z) |
Gets maximum component. More... | |
static const errcode | getMaxComponent (Vect &globalMax, Vect &localMax) |
Gets maximum component. More... | |
static const errcode | getMinComponent (Vect &globalMin, Vect &localMin) |
Gets minimum component. More... | |
static bool | DifferentEnough (const Vect &v1, const Vect &v2, float epsilon) |
Different enough. More... | |
static float | ClampFloat (float clamp, float a, float b) |
Clamp float. More... | |
static Vect | ClampPoint (Vect &point, const Vect &min, const Vect &max) |
Clamp point. More... | |
static bool | OBBOverlap (const Vect &v, const CollisionVolumeOBB &M, const CollisionVolumeOBB &N) |
Obb overlap. More... | |
static bool | OBBOverlap (const Vect &v, const CollisionVolumeAABB &M, const CollisionVolumeOBB &N) |
Obb overlap. More... | |
static bool | Overlap (float aMin, float aMax, float bMin, float bMax) |
Overlaps. More... | |
static float | MaxOBBProjectionLength (const Vect &v, const CollisionVolumeOBB &obb) |
Maximum obb projection length. More... | |
static float | MaxOBBProjectionLength (const Vect &v, const CollisionVolumeAABB &obb) |
Maximum obb projection length. More... | |
static const Vect | getMin (Vect *, int, Matrix &) |
Finds the min of the given arguments. More... | |
static const Vect | getMax (Vect *, int, Matrix &) |
Finds the max of the given arguments. More... | |
A flim mathematics.
|
static |
Clamp float.
clamp | The clamp. |
a | The float to process. |
b | The float to process. |
|
static |
Clamp point.
[in,out] | point | The point. |
min | The minimum. | |
max | The maximum. |
|
static |
Different enough.
v1 | The first Vect. |
v2 | The second Vect. |
epsilon | The epsilon. |
|
static |
Finds the max of the given arguments.
[in,out] | parameter1 | If non-null, the first parameter. |
parameter2 | The second parameter. |
|
static |
Finds the max of the given arguments.
[in,out] | parameter1 | If non-null, the first parameter. |
parameter2 | The second parameter. | |
[in,out] | parameter3 | The third parameter. |
|
static |
Gets maximum component.
[in,out] | vector | The vector. |
[in,out] | x | The float to process. |
[in,out] | y | The float to process. |
[in,out] | z | The float to process. |
|
static |
Gets maximum component.
[in,out] | globalMax | The global maximum. |
[in,out] | localMax | The local maximum. |
|
static |
Finds the min of the given arguments.
[in,out] | parameter1 | If non-null, the first parameter. |
parameter2 | The second parameter. |
|
static |
Finds the min of the given arguments.
[in,out] | parameter1 | If non-null, the first parameter. |
parameter2 | The second parameter. | |
[in,out] | parameter3 | The third parameter. |
|
static |
Gets minimum component.
[in,out] | vector | The vector. |
[in,out] | x | The float to process. |
[in,out] | y | The float to process. |
[in,out] | z | The float to process. |
|
static |
Gets minimum component.
[in,out] | globalMin | The global minimum. |
[in,out] | localMin | The local minimum. |
|
static |
Intersection math for two bspheres.
Intersects.
A | The CollisionVolumeBSphere to process. |
B | The CollisionVolumeBSphere to process. |
A | The CollisionVolumeBSphere to process. |
B | The CollisionVolumeBSphere to process. |
|
static |
Intersects.
A | The CollisionVolumeBSphere to process. |
P | The Vect to process. |
|
static |
Intersects.
A | The CollisionVolumeBSphere to process. |
B | The CollisionVolumeAABB to process. |
|
static |
Intersects.
A | The CollisionVolumeBSphere to process. |
B | The CollisionVolumeOBB to process. |
|
static |
Intersects.
A | The CollisionVolumeAABB to process. |
B | The CollisionVolumeOBB to process. |
|
static |
Intersects.
A | The CollisionVolumeOBB to process. |
B | The CollisionVolumeOBB to process. |
|
static |
Intersects.
A | The CollisionVolumeAABB to process. |
B | The CollisionVolumeAABB to process. |
|
static |
Intersects.
A | The CollisionVolumeOcclusionLine to process. |
B | The CollisionVolumeBSphere to process. |
|
static |
Intersects.
A | The CollisionVolumeOcclusionLine to process. |
B | The CollisionVolumeOBB to process. |
|
static |
Intersects.
A | The CollisionVolumeOcclusionLine to process. |
B | The CollisionVolumeAABB to process. |
|
static |
Intersects.
A | The CollisionVolumeOcclusionLine to process. |
B | The CollisionVolumeOcclusionLine to process. |
|
static |
Intersects.
[in,out] | A | If non-null, the Collidable to process. |
[in,out] | B | If non-null, the Collidable to process. |
|
static |
Intersects.
A | The CollisionVolume to process. |
B | The CollisionVolumeAABB to process. |
|
static |
Maximum obb projection length.
v | The Vect to process. |
obb | The obb. |
|
static |
Maximum obb projection length.
v | The Vect to process. |
obb | The obb. |
|
static |
Obb overlap.
v | The Vect to process. |
M | The CollisionVolumeOBB to process. |
N | The CollisionVolumeOBB to process. |
|
static |
Obb overlap.
v | The Vect to process. |
M | The CollisionVolumeAABB to process. |
N | The CollisionVolumeOBB to process. |
|
static |
Overlaps.
aMin | The minimum. |
aMax | The maximum. |
bMin | The minimum. |
bMax | The maximum. |