//
// Created by Max Rosoff on 9/7/2019.
//

#ifndef GRAPHICS_TRANSFORM_H
#define GRAPHICS_TRANSFORM_H

#define _USE_MATH_DEFINES
#include <cmath>

#include <string>
#include <vector>
#include <cmath>
#include <iostream>
#include <limits>

#include "../../Matrix/Vector.h"
#include "../../Matrix/Matrix.h"

class Remap {

public:

    Remap() = delete;
    Remap(const Remap &) = default;
    Remap &operator=(const Remap &) = delete;
    ~Remap() = default;

    explicit Remap(const Vector &, double, const Matrix &, const Matrix &, double smoothingAngle, const std::string &);

    double smoothingAngle = 0;
    std::string objPath;
    Matrix transformation;

private:

    Matrix findRotationMatrix(const Vector &, double theta) const;
    Matrix changeCords(const Vector &) const;
    int findMinIndex(const Vector &rotationVector) const;
};

std::ostream &operator<<(std::ostream &, const Remap &);


#endif //GRAPHICS_TRANSFORM_H
