Now we can transform!

This commit is contained in:
Godzil
2020-02-14 23:28:56 +00:00
parent 514bd649c1
commit dee4b9ae91
5 changed files with 302 additions and 3 deletions

View File

@@ -0,0 +1,24 @@
/*
* DoRayMe - a quick and dirty Raytracer
* Transformation header
*
* Created by Manoël Trapier
* Copyright (c) 2020 986-Studio.
*
*/
#ifndef DORAYME_TRANSFORMATION_H
#define DORAYME_TRANSFORMATION_H
#include <matrix.h>
Matrix translation(double x, double y, double z);
Matrix scaling(double x, double y, double z);
Matrix rotation_x(double angle);
Matrix rotation_y(double angle);
Matrix rotation_z(double angle);
Matrix shearing(double Xy, double Xx, double Yx, double Yz, double Zx, double Zy);
#endif /* DORAYME_TRANSFORMATION_H */