Files
dorayme/source/include/transformation.h
2020-02-20 15:11:40 +00:00

26 lines
606 B
C

/*
* 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 rotationX(double angle);
Matrix rotationY(double angle);
Matrix rotationZ(double angle);
Matrix shearing(double Xy, double Xx, double Yx, double Yz, double Zx, double Zy);
Matrix viewTransform(Tuple from, Tuple to, Tuple up);
#endif /* DORAYME_TRANSFORMATION_H */