Started working on boundingboxes.
This commit is contained in:
21
source/include/boundingbox.h
Normal file
21
source/include/boundingbox.h
Normal file
@@ -0,0 +1,21 @@
|
||||
/*
|
||||
* DoRayMe - a quick and dirty Raytracer
|
||||
* Bounding box header
|
||||
*
|
||||
* Created by Manoël Trapier
|
||||
* Copyright (c) 2020 986-Studio.
|
||||
*
|
||||
*/
|
||||
#ifndef DORAYME_BOUNDINGBOX_H
|
||||
#define DORAYME_BOUNDINGBOX_H
|
||||
|
||||
struct BoundingBox
|
||||
{
|
||||
Tuple min;
|
||||
Tuple max;
|
||||
|
||||
BoundingBox() : min(-0, -0, -0), max(0, 0, 0) { };
|
||||
BoundingBox(Tuple min, Tuple max) : min(min), max(max) { };
|
||||
};
|
||||
|
||||
#endif //DORAYME_BOUNDINGBOX_H
|
||||
Reference in New Issue
Block a user