|
Bullet Collision Detection & Physics Library
|
#include "gim_linear_math.h"

Go to the source code of this file.
Macros | |
| #define | PLANEDIREPSILON 0.0000001f |
| #define | PARALELENORMALS 0.000001f |
| #define | TRIANGLE_NORMAL(v1, v2, v3, n) |
| #define | TRIANGLE_NORMAL_FAST(v1, v2, v3, n) |
| #define | TRIANGLE_PLANE(v1, v2, v3, plane) |
| plane is a vec4f | |
| #define | TRIANGLE_PLANE_FAST(v1, v2, v3, plane) |
| plane is a vec4f | |
| #define | EDGE_PLANE(e1, e2, n, plane) |
| Calc a plane from an edge an a normal. plane is a vec4f. | |
| #define | DISTANCE_PLANE_POINT(plane, point) (VEC_DOT(plane,point) - plane[3]) |
| #define | PROJECT_POINT_PLANE(point, plane, projected) |
| #define | PLANE_MINOR_AXES(plane, i0, i1) VEC_MINOR_AXES(plane, i0, i1) |
| Finds the 2 smallest cartesian coordinates of a plane normal. | |
Enumerations | |
| enum | ePLANE_INTERSECTION_TYPE { G_BACK_PLANE = 0 , G_COLLIDE_PLANE , G_FRONT_PLANE } |
| enum | eLINE_PLANE_INTERSECTION_TYPE { G_FRONT_PLANE_S1 = 0 , G_FRONT_PLANE_S2 , G_BACK_PLANE_S1 , G_BACK_PLANE_S2 , G_COLLIDE_PLANE_S1 , G_COLLIDE_PLANE_S2 } |
Definition in file gim_basic_geometry_operations.h.
Definition at line 89 of file gim_basic_geometry_operations.h.
Calc a plane from an edge an a normal. plane is a vec4f.
Definition at line 81 of file gim_basic_geometry_operations.h.
| #define PARALELENORMALS 0.000001f |
Definition at line 49 of file gim_basic_geometry_operations.h.
Finds the 2 smallest cartesian coordinates of a plane normal.
Definition at line 235 of file gim_basic_geometry_operations.h.
| #define PLANEDIREPSILON 0.0000001f |
Definition at line 45 of file gim_basic_geometry_operations.h.
Definition at line 91 of file gim_basic_geometry_operations.h.
plane is a vec4f
Definition at line 69 of file gim_basic_geometry_operations.h.
plane is a vec4f
Definition at line 75 of file gim_basic_geometry_operations.h.
| Enumerator | |
|---|---|
| G_FRONT_PLANE_S1 | |
| G_FRONT_PLANE_S2 | |
| G_BACK_PLANE_S1 | |
| G_BACK_PLANE_S2 | |
| G_COLLIDE_PLANE_S1 | |
| G_COLLIDE_PLANE_S2 | |
Definition at line 132 of file gim_basic_geometry_operations.h.
| Enumerator | |
|---|---|
| G_BACK_PLANE | |
| G_COLLIDE_PLANE | |
| G_FRONT_PLANE | |
Definition at line 125 of file gim_basic_geometry_operations.h.
Line box intersection in one dimension.
| pos | Position of the ray |
| dir | Projection of the Direction of the ray |
| bmin | Minimum bound of the box |
| bmax | Maximum bound of the box |
| tfirst | the minimum projection. Assign to 0 at first. |
| tlast | the maximum projection. Assign to INFINITY at first. |
Definition at line 501 of file gim_basic_geometry_operations.h.
|
inline |
Finds the closest point(cp) to (v) on a segment (e1,e2)
Definition at line 341 of file gim_basic_geometry_operations.h.
|
inline |
Returns the Ray on which 2 planes intersect if they do. Written by Rodrigo Hernandez on ODE convex collision.
| p1 | Plane 1 |
| p2 | Plane 2 |
| p | Contains the origin of the ray upon returning if planes intersect |
| d | Contains the direction of the ray upon returning if planes intersect |
Definition at line 316 of file gim_basic_geometry_operations.h.
|
inline |
Finds the line params where these lines intersect.
| dir1 | Direction of line 1 |
| point1 | Point of line 1 |
| dir2 | Direction of line 2 |
| point2 | Point of line 2 |
| t1 | Result Parameter for line 1 |
| t2 | Result Parameter for line 2 |
| dointersect | 0 if the lines won't intersect, else 1 |
Definition at line 378 of file gim_basic_geometry_operations.h.
|
inline |
line collision
Definition at line 270 of file gim_basic_geometry_operations.h.
|
inline |
Definition at line 113 of file gim_basic_geometry_operations.h.
|
inline |
Confirms if the plane intersect the edge or nor.
intersection type must have the following values
Definition at line 156 of file gim_basic_geometry_operations.h.
|
inline |
Confirms if the plane intersect the edge or not.
clipped1 and clipped2 are the vertices behind the plane. clipped1 is the closest
intersection_type must have the following values
Definition at line 198 of file gim_basic_geometry_operations.h.
|
inline |
Verifies if a point is in the plane hull.
Definition at line 100 of file gim_basic_geometry_operations.h.
|
inline |
Ray plane collision in one way.
Intersects plane in one way only. The ray must face the plane (normals must be in opossite directions).
It uses the PLANEDIREPSILON constant.
Definition at line 243 of file gim_basic_geometry_operations.h.
|
inline |
Find closest points on segments.
Definition at line 402 of file gim_basic_geometry_operations.h.