transformation.h 551 B

123456789101112131415161718192021222324
  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. #endif /* DORAYME_TRANSFORMATION_H */