mirror of
https://github.com/zeldaret/st
synced 2026-05-23 23:05:25 -04:00
0698c28bb0
* clean up math.h and attempt to improve existing vector maths * fix broken matches and match new stuff
29 lines
400 B
C++
29 lines
400 B
C++
#pragma once
|
|
|
|
#include "types.h"
|
|
|
|
#include "math.hpp"
|
|
|
|
struct Cylinder {
|
|
Vec3p pos;
|
|
q20 size; // height and radius
|
|
|
|
Cylinder() {}
|
|
Cylinder(q20 size) {
|
|
this->Init(size);
|
|
}
|
|
|
|
void Init(q20 size) {
|
|
pos.x = 0;
|
|
pos.y = size;
|
|
pos.z = 0;
|
|
|
|
this->size = size;
|
|
}
|
|
|
|
void MakeEmpty() {
|
|
pos = gVec3p_ZERO;
|
|
size = -1;
|
|
}
|
|
};
|