Yet Another Game Engine
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
yage::RectangleCollider Class Reference

#include <rectanglecollider.h>

Inheritance diagram for yage::RectangleCollider:
yage::Collider

Public Member Functions

 RectangleCollider (const glm::vec2 &position, const glm::vec2 &size)
 
bool collides (const Collider &collider) const override
 
bool inside (const glm::vec2 &point) const override
 
- Public Member Functions inherited from yage::Collider
 Collider (const glm::vec2 &position, const glm::vec2 &size)
 

Additional Inherited Members

- Protected Attributes inherited from yage::Collider
glm::vec2 position_
 
glm::vec2 size_
 

Constructor & Destructor Documentation

yage::RectangleCollider::RectangleCollider ( const glm::vec2 &  position,
const glm::vec2 &  size 
)

Member Function Documentation

bool yage::RectangleCollider::collides ( const Collider collider) const
overridevirtual

Implements yage::Collider.

bool yage::RectangleCollider::inside ( const glm::vec2 &  point) const
inlineoverridevirtual

Implements yage::Collider.


The documentation for this class was generated from the following files: