Jamie Slowgrove - MGP Assignment 2 - JAM
 All Classes Namespaces Files Functions Variables Macros
CollisionDetection.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <math.h>
4 #include "Vec2.h"
5 
11 {
20  bool collisionRectRectDetection(JAM_Vec2 positionA, JAM_Vec2 dimensionsA, JAM_Vec2 positionB, JAM_Vec2 dimensionsB);
21 
30  bool collisionCircleCircleDetection(JAM_Vec2 positionA, float radiusA, JAM_Vec2 positionB, float radiusB);
31 };
bool collisionRectRectDetection(JAM_Vec2 positionA, JAM_Vec2 dimensionsA, JAM_Vec2 positionB, JAM_Vec2 dimensionsB)
Definition: CollisionDetection.cpp:6
bool collisionCircleCircleDetection(JAM_Vec2 positionA, float radiusA, JAM_Vec2 positionB, float radiusB)
Definition: CollisionDetection.cpp:25
A Namespace that contains functions for the collision detection.
Definition: CollisionDetection.h:10
Creates an Vec2 structure with functions. Creates an Vec2 structure with overloaded operators to crea...
Definition: Vec2.h:9