- Main Page
- Classes
- Files

- File List
- File Members

# flCollision.c File Reference

`#include "flGlobal.h"`

Go to the source code of this file.

## Functions
vect2f | collision2dLineClosestPoint (Line2d inLine, vect2f inPoint)
bool | collision2dLineLine (Line2d inLine0, Line2d inLine1)
bool | collision2dCircleCircle (Circle2d inCirc0, Circle2d inCirc1)
bool | collision2dLineCircle (Line2d inLine, Circle2d inCirc)
bool | collision2dRectRect (Rect2d inRect0, Rect2d inRect1)
## Variables
vect2f | collisionLast

## Function Documentation

bool collision2dCircleCircle | ( | Circle2d | inCirc0,
|  | Circle2d | inCirc1 |
| ) |  |  |

Definition at line 142 of file flCollision.c.

References Circle2d::circCenter, Circle2d::circRadius, collisionLast, max, and min.

bool collision2dLineCircle | ( | Line2d | inLine,
|  | Circle2d | inCirc |
| ) |  |  |

Definition at line 160 of file flCollision.c.

References Circle2d::circCenter, Circle2d::circRadius, collision2dLineClosestPoint(), collisionLast, max, and min.

vect2f collision2dLineClosestPoint | ( | Line2d | inLine,
|  | vect2f | inPoint |
| ) |  |  |

Definition at line 10 of file flCollision.c.

References Line2d::linePoints.

Referenced by collision2dLineCircle().

bool collision2dLineLine | ( | Line2d | inLine0,
|  | Line2d | inLine1 |
| ) |  |  |

Definition at line 30 of file flCollision.c.

References collisionLast, Line2d::linePoints, max, and min.

bool collision2dRectRect | ( | Rect2d | inRect0,
|  | Rect2d | inRect1 |
| ) |  |  |

Definition at line 175 of file flCollision.c.

References collisionLast, Rect2d::rectPoints, and Rect2d::rectSize.

## Variable Documentation

vect2f collisionLast

Definition at line 8 of file flCollision.c.

Referenced by collision2dCircleCircle(), collision2dLineCircle(), collision2dLineLine(), and collision2dRectRect().