transformation.h 606 B

1234567891011121314151617181920212223242526
  1. /*
  2. * DoRayMe - a quick and dirty Raytracer
  3. * Transformation header
  4. *
  5. * Created by Manoël Trapier
  6. * Copyright (c) 2020 986-Studio.
  7. *
  8. */
  9. #ifndef DORAYME_TRANSFORMATION_H
  10. #define DORAYME_TRANSFORMATION_H
  11. #include <matrix.h>
  12. Matrix translation(double x, double y, double z);
  13. Matrix scaling(double x, double y, double z);
  14. Matrix rotationX(double angle);
  15. Matrix rotationY(double angle);
  16. Matrix rotationZ(double angle);
  17. Matrix shearing(double Xy, double Xx, double Yx, double Yz, double Zx, double Zy);
  18. Matrix viewTransform(Tuple from, Tuple to, Tuple up);
  19. #endif /* DORAYME_TRANSFORMATION_H */