tcMenu
Loading...
Searching...
No Matches
tcgfx::Coord Struct Reference

#include <DrawingPrimitives.h>

Public Member Functions

 Coord ()
 Coord (int x, int y)
 Coord (const Coord &other)=default
Coordoperator= (const Coord &other)=default

Public Attributes

int16_t x
int16_t y

Detailed Description

A structure that holds both X and Y direction in a single 32 bit integer. Both x and y are public

Constructor & Destructor Documentation

◆ Coord() [1/2]

tcgfx::Coord::Coord ( )
inline

default construction sets values to 0

◆ Coord() [2/2]

tcgfx::Coord::Coord ( int x,
int y )
inline

Create a coord based on an X and Y location

Parameters
xthe x location
ythe y location

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