mirror of
https://github.com/zeldaret/ph
synced 2026-05-24 07:10:52 -04:00
23 lines
337 B
C++
23 lines
337 B
C++
#pragma once
|
|
|
|
#include "global.h"
|
|
#include "types.h"
|
|
|
|
#include "lib/math.h"
|
|
|
|
struct Cylinder {
|
|
Vec3p pos;
|
|
q20 size; // height and radius
|
|
|
|
inline Cylinder() {}
|
|
inline Cylinder(q20 size) {
|
|
pos.x = 0;
|
|
pos.y = size;
|
|
pos.z = 0;
|
|
|
|
this->size = size;
|
|
}
|
|
|
|
bool Overlaps(Cylinder *other);
|
|
};
|