X-Git-Url: https://eleni.mutantstargoat.com/git/?p=hair;a=blobdiff_plain;f=src%2Fobject.h;fp=src%2Fobject.h;h=2efedf774a55373be4a291464b104a6d95649637;hp=0000000000000000000000000000000000000000;hb=a65a977df6fa8fee831c91cdc754d62e023b6630;hpb=b07896ffc92093a3e8adb4953d22927a5874e43d diff --git a/src/object.h b/src/object.h new file mode 100644 index 0000000..2efedf7 --- /dev/null +++ b/src/object.h @@ -0,0 +1,17 @@ +#ifndef OBJECT_H_ +#define OBJECT_H_ + +#include + +class CollSphere { +public: + float radius; + Vec3 center; + + CollSphere(); + + bool contains(const Vec3 &v) const; + Vec3 project_surf(const Vec3 &v) const; +}; + +#endif // OBJECT_H_