mirror of
https://github.com/zeldaret/st
synced 2026-06-05 03:07:57 -04:00
69ef244371
* merge headers from nitro decomp * cleanup: use inlines from g2.h and gx.h when changing registers * cleanup: remove externs declarations in source files
29 lines
407 B
C++
29 lines
407 B
C++
#pragma once
|
|
|
|
#include "types.h"
|
|
|
|
#include "math.hpp"
|
|
|
|
struct Cylinder {
|
|
VecFx32 pos;
|
|
fx32 size; // height and radius
|
|
|
|
Cylinder() {}
|
|
Cylinder(fx32 size) {
|
|
this->Init(size);
|
|
}
|
|
|
|
void Init(fx32 size) {
|
|
pos.x = 0;
|
|
pos.y = size;
|
|
pos.z = 0;
|
|
|
|
this->size = size;
|
|
}
|
|
|
|
void MakeEmpty() {
|
|
pos = gVecFx32_ZERO;
|
|
size = -1;
|
|
}
|
|
};
|