Loading...
Searching...
No Matches
Rect Struct Reference

Axis-aligned bounding box (rectangle) More...

#include <collision.h>

Public Attributes

u16 height
 
u16 width
 
s16 x
 
s16 y
 

Detailed Description

Axis-aligned bounding box (rectangle)

Represents a collision rectangle in screen coordinates. Origin is top-left corner.

Member Data Documentation

◆ height

u16 Rect::height

Height in pixels

◆ width

u16 Rect::width

Width in pixels

◆ x

s16 Rect::x

Left edge X coordinate

◆ y

s16 Rect::y

Top edge Y coordinate


The documentation for this struct was generated from the following file: