refeactoring more primatives into their own classes

This commit is contained in:
2026-07-07 06:47:24 -07:00
parent 19400ed32e
commit 3907c88f31
8 changed files with 289 additions and 203 deletions
+18 -18
View File
@@ -36,22 +36,22 @@ namespace UwU {
uint16_t y;
};
// trapezoid datatype (horizontally constrained)
struct Trapezoid {
Trapezoid(uint16_t y0, uint16_t y1, uint16_t xl0, uint16_t xl1, uint16_t xr0, uint16_t xr1) {
this->y0 = y0;
this->y1 = y1;
this->xl0 = xl0;
this->xl1 = xl1;
this->xr0 = xr0;
this->xr1 = xr1;
}
Trapezoid() {}
uint16_t y0;
uint16_t y1;
uint16_t xl0;
uint16_t xl1;
uint16_t xr0;
uint16_t xr1;
};
// // trapezoid datatype (horizontally constrained)
// struct Trapezoid {
// Trapezoid(uint16_t y0, uint16_t y1, uint16_t xl0, uint16_t xl1, uint16_t xr0, uint16_t xr1) {
// this->y0 = y0;
// this->y1 = y1;
// this->xl0 = xl0;
// this->xl1 = xl1;
// this->xr0 = xr0;
// this->xr1 = xr1;
// }
// Trapezoid() {}
// uint16_t y0;
// uint16_t y1;
// uint16_t xl0;
// uint16_t xl1;
// uint16_t xr0;
// uint16_t xr1;
// };
}