mirror of
https://github.com/zeldaret/st
synced 2026-08-23 07:09:33 -04:00
ce24ddfc4e
* feat: improvements in SWBM * feat: improvements * feat: increase matching for jp version * feat: add vfuncs from fields' classes * feat: improve matching * feat: rename parameters to reflect staticness of the function * refactor: change mangled name * feat: remove unused variable from bss * style: explicite parenthesis * feat: better matching * feat: replace if/else by a switch statement
41 lines
690 B
C++
41 lines
690 B
C++
#pragma once
|
|
|
|
#include "types.h"
|
|
|
|
#include "math.hpp"
|
|
|
|
struct Cylinder {
|
|
/* 00 */ VecFx32 pos;
|
|
/* 0C */ fx32 size; // height and radius
|
|
/* 10 */
|
|
|
|
Cylinder() {}
|
|
Cylinder(fx32 size) {
|
|
this->Init(size);
|
|
}
|
|
Cylinder(fx32 x, fx32 y, fx32 z, fx32 size) {
|
|
this->Init(x, y, z, size);
|
|
}
|
|
|
|
void Init(fx32 size) {
|
|
pos.x = 0;
|
|
pos.y = size;
|
|
pos.z = 0;
|
|
|
|
this->size = size;
|
|
}
|
|
|
|
void Init(fx32 x, fx32 y, fx32 z, fx32 size) {
|
|
this->pos.x = x;
|
|
this->pos.y = y;
|
|
this->pos.z = z;
|
|
|
|
this->size = size;
|
|
}
|
|
|
|
void MakeEmpty() {
|
|
pos = gVecFx32_ZERO;
|
|
size = -1;
|
|
}
|
|
};
|