le3d - LightEngine 3D
A straightforward C++ 3D software engine for real-time graphics
|
LightEngine 3D (tools): Collision routines. More...
#include "../engine/le3d.h"
Go to the source code of this file.
Namespaces | |
LeCollisions | |
Functions | |
int | LeCollisions::collideRectRect (float &ansX, float &ansY, float srcX, float srcY, float srcW, float srcH, float dstX, float dstY, float dstW, float dstH) |
Compute the intersection between two rectangles. More... | |
int | LeCollisions::collideSphereSphere (LeVertex &ans, LeVertex &contact, const LeVertex &pos, float srcRadius, float dstRadius) |
Compute the intersection between two spheres. More... | |
int | LeCollisions::collideSphereBox (LeVertex &ans, LeVertex &contact, const LeVertex &pos, float srcRadius, const LeVertex &dstSize) |
Compute the intersection between a sphere and a box. More... | |
int | LeCollisions::collideSphereMesh (LeVertex &ans, LeVertex &contact, const LeVertex &pos, float srcRadius, const LeMesh *dstMesh) |
Compute the intersection between a sphere and a mesh. More... | |
int | LeCollisions::traceSphere (const LeVertex &pos, float radius, const LeVertex &axis, float &distance) |
int | LeCollisions::traceBox (const LeVertex &pos, const LeVertex &size, const LeVertex &axis, float &distance) |
Compute the intersection between a casted ray and a box. More... | |
int | LeCollisions::traceMesh (const LeMesh *mesh, const LeAxis &axis, float &distance) |
Compute the intersection between a casted ray and a mesh. More... | |
LightEngine 3D (tools): Collision routines.
All platforms implementation
The MIT License (MIT) Copyright (c) 2015-2018 Frédéric Meslin
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.