Physics-Simulator  v1.4.0-beta.2
stcBox Struct Reference

#include <cannonball.h>

Public Attributes

int left
 
int right
 
int top
 
int bottom
 

Detailed Description

Holds a box which specifics the space that the ball occupies, used to see if it is colliding with another ball. The box is defined with the values of it left-most edge, its right-most edge, its top-most edge, and its bottom-most edge

Member Data Documentation

◆ bottom

int stcBox::bottom

Bottom-most edge in term of pixels from the top window edge

◆ left

int stcBox::left

Left-most edge in term of pixels from the left window edge

◆ right

int stcBox::right

Right-most edge in term of pixels from the left window edge

◆ top

int stcBox::top

Top-most edge in term of pixels from the top window edge


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