sphere.h 410 B

1234567891011121314151617181920212223
  1. /*
  2. * DoRayMe - a quick and dirty Raytracer
  3. * Sphere header
  4. *
  5. * Created by Manoël Trapier
  6. * Copyright (c) 2020 986-Studio.
  7. *
  8. */
  9. #ifndef DORAYME_SPHERE_H
  10. #define DORAYME_SPHERE_H
  11. #include <object.h>
  12. #include <ray.h>
  13. #include <intersect.h>
  14. class Sphere : public Object
  15. {
  16. public:
  17. /* All sphere are at (0, 0, 0) and radius 1*/
  18. virtual Intersect intersect(Ray r);
  19. };
  20. #endif //DORAYME_SPHERE_H