- Main Page
- Classes
- Files

- File List
- File Members

# flCollision.h

Go to the documentation of this file.

    00001 // Funclib Collision v1.0.0
    00002 //
    00003 // This module contains collision detection functions.
    00004 // For all you lazy programmers who can't be bothered doing
    00005 // it yourselves :P
    00006 //
    00007 // Contributor(s): Flatmush
    00008
    00009
    00010
    00011 #ifndef FLCOLLISION_H
    00012 #define FLCOLLISION_H
    00013
    00014 #include "flGlobal.h"
    00015
    00016 #if FL_COLOR != 0
    00017
    00018 #ifdef __cplusplus
    00019 extern "C" {
    00020 #endif
    00021
    00022 extern vect2f collisionLast;
    00023
    00024 extern vect2f collision2dLineClosestPoint(Line2d inLine, vect2f inPoint);
    00025 extern bool   collision2dLineLine(Line2d inLine0, Line2d inLine1);
    00026 extern bool   collision2dCircleCircle(Circle2d inCirc0, Circle2d inCirc1);
    00027 extern bool   collision2dLineCircle(Line2d inLine, Circle2d inCirc);
    00028 extern bool   collision2dRectRect(Rect2d inRect0, Rect2d inRect1);
    00029
    00030 #ifdef __cplusplus
    00031 }
    00032 #endif
    00033
    00034 #endif
    00035 #endif