Stardew Engine
Loading...
Searching...
No Matches
Geometry.h File Reference
#include <stdbool.h>
#include <cglm/cglm.h>
Include dependency graph for Geometry.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef vec4 GeomRect
 

Enumerations

enum  Geom_RecCoords { GR_TLX , GR_TLY , GR_BRX , GR_BRY }
 

Functions

bool Ge_PointInAABB (float pointX, float pointY, GeomRect rect)
 
bool Ge_AABBIntersect (vec2 tl1, vec2 br1, vec2 tl2, vec2 br2)
 

Typedef Documentation

◆ GeomRect

typedef vec4 GeomRect

Enumeration Type Documentation

◆ Geom_RecCoords

Enumerator
GR_TLX 
GR_TLY 
GR_BRX 
GR_BRY 

Function Documentation

◆ Ge_AABBIntersect()

bool Ge_AABBIntersect ( vec2  tl1,
vec2  br1,
vec2  tl2,
vec2  br2 
)

◆ Ge_PointInAABB()

bool Ge_PointInAABB ( float  pointX,
float  pointY,
GeomRect  rect 
)