fix indentation, now using tabs

This commit is contained in:
arthur.jamet
2021-05-21 23:50:54 +02:00
parent 17f0db2bd1
commit dd128b8b97
71 changed files with 1457 additions and 1473 deletions
+36 -36
View File
@@ -12,56 +12,56 @@
#include "Drawables/ADrawable2D.hpp"
namespace RAY::Drawables::Drawables2D {
class Triangle: public ADrawable2D
class Triangle: public ADrawable2D
{
public:
public:
//! @brief Triangle constructor
//! @param positionA position of A point
//! @param positionB position of B point
//! @param positionC position of C point
//! @param Color Color of the circle
Triangle(const Vector2 &positionA, const Vector2 &positionB, const Vector2 &positionC, const Color &color);
//! @brief Triangle constructor
//! @param positionA position of A point
//! @param positionB position of B point
//! @param positionC position of C point
//! @param Color Color of the circle
Triangle(const Vector2 &positionA, const Vector2 &positionB, const Vector2 &positionC, const Color &color);
//! @brief A default copy constructor
Triangle(const Triangle &) = default;
//! @brief A default copy constructor
Triangle(const Triangle &) = default;
//! @brief A Triangle is assignable
Triangle &operator=(const Triangle &) = default;
//! @brief A Triangle is assignable
Triangle &operator=(const Triangle &) = default;
//! @brief A default destructor
~Triangle() = default;
//! @brief A default destructor
~Triangle() = default;
//! @return the position of A of the Triangle
const Vector2 &getPositionA(void) const;
//! @return the position of A of the Triangle
const Vector2 &getPositionA(void) const;
//! @return the position of B of the Triangle
const Vector2 &getPositionB(void) const;
//! @return the position of B of the Triangle
const Vector2 &getPositionB(void) const;
//! @return the position of C of the Triangle
const Vector2 &getPositionC(void) const;
//! @return the position of C of the Triangle
const Vector2 &getPositionC(void) const;
//! @brief the position of A of the Triangle
Triangle &setPositionA(const Vector2 &);
//! @brief the position of A of the Triangle
Triangle &setPositionA(const Vector2 &);
//! @brief the position of B of the Triangle
Triangle &setPositionB(const Vector2 &);
//! @brief the position of B of the Triangle
Triangle &setPositionB(const Vector2 &);
//! @brief the position of C of the Triangle
Triangle &setPositionC(const Vector2 &);
//! @brief the position of C of the Triangle
Triangle &setPositionC(const Vector2 &);
//! @brief Draw point on window
void drawOn(RAY::Window &window) override;
//! @brief Draw point on image
void drawOn(RAY::Image &image) override;
//! @brief Draw point on window
void drawOn(RAY::Window &) override;
//! @brief Draw point on image
void drawOn(RAY::Image &image) override;
private:
//! @brief Position of B
Vector2 _posB;
//! @brief Position of C
Vector2 _posC;
};
private:
//! @brief Position of B
Vector2 _posB;
//! @brief Position of C
Vector2 _posC;
};
};
#endif /* !PIXEL_HPP_ */