mirror of
https://github.com/zeldaret/ph
synced 2026-05-31 09:21:38 -04:00
22 lines
336 B
C++
22 lines
336 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);
|
|
};
|