File Geometry.h

FileList > engine > include > Geometry.h

Go to the source code of this file

  • #include <stdbool.h>
  • #include <cglm/cglm.h>

Public Types

Type Name
typedef vec4 GeomRect
enum Geom_RecCoords

Public Functions

Type Name
bool Ge_AABBIntersect (vec2 tl1, vec2 br1, vec2 tl2, vec2 br2)
float Ge_AngleBetweenVec2s (vec2 a, vec2 b)
float Ge_DistanceBetweenPoints (vec2 a, vec2 b)
bool Ge_PointInAABB (float pointX, float pointY, GeomRect rect)

Public Types Documentation

typedef GeomRect

typedef vec4 GeomRect;

enum Geom_RecCoords

enum Geom_RecCoords {
    GR_TLX,
    GR_TLY,
    GR_BRX,
    GR_BRY
};

Public Functions Documentation

function Ge_AABBIntersect

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

function Ge_AngleBetweenVec2s

float Ge_AngleBetweenVec2s (
    vec2 a,
    vec2 b
) 

function Ge_DistanceBetweenPoints

float Ge_DistanceBetweenPoints (
    vec2 a,
    vec2 b
) 

function Ge_PointInAABB

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


The documentation for this class was generated from the following file /home/runner/work/2DFarmingRPG/2DFarmingRPG/Stardew/engine/include/Geometry.h