Go to the documentation of this file.
33 Line(
int xStart,
int yStart,
int xEnd,
int yEnd,
const Color &);
42 ~Line()
override =
default;
Line in a two-dimensionnal space.
Definition: Line.hpp:16
Definition: Window.hpp:32
void drawOn(RAY::Window &) override
Draw point on window.
Definition: Line.cpp:35
A Two-dimensionnal Vector data type.
Definition: Vector2.hpp:15
Line & operator=(const Line &)=default
A line is assignable.
Line(const Vector2 &startPosition, const Vector2 &endPosition, const Color &)
Line constructor.
Definition: Line.cpp:14
Vector2 _end
Positon of the end of the line.
Definition: Line.hpp:57
~Line() override=default
A default destructor.
Object representation of a framebuffer.
Definition: Image.hpp:20
Line & setEndPosition(const Vector2 &)
set the end position of the line
Definition: Line.cpp:29
const Vector2 & getEndPosition(void) const
Definition: Line.cpp:24
Object representation of color.
Definition: Color.hpp:15
Abstraction of any two-dimensionnal drawable.
Definition: ADrawable2D.hpp:21
Definition: Circle.cpp:11