43 :
_p1(
p1.first,
p1.second, 0.f, 1.f)
44 ,
_p2(
p2.first,
p2.second, 0.f, 1.f)
57 explicit operator std::pair<gfx::Vertex, gfx::Vertex>()
const;
59 [[nodiscard]]
auto p1() const -> const
Vector4D&;
61 [[nodiscard]] auto
p2() const -> const
Vector4D&;
A struct for stroing vertexes and handing them to opengl.
Line(const Line &other)=default
auto operator=(const Line &other) -> Line &=default
Line(Vector4D p1, Vector4D p2, Vector4D color={1.0f, 0.0f, 0.0f, 1.0f})
Definition Line.h:34
auto p2() const -> const Vector4D &
Definition Line.cpp:50
auto p1() const -> const Vector4D &
Definition Line.cpp:40
Vector4D _p2
Definition Line.h:71
auto color() const -> const Vector4D &
Definition Line.cpp:60
Vector4D _color
Definition Line.h:72
Line(Line &&other) noexcept=default
auto operator=(Line &&other) noexcept -> Line &=default
Vector4D _p1
Definition Line.h:70
Line(std::pair< float, float > p1, std::pair< float, float > p2, Vector4D color={1.0f, 0.f, 0.f, 1.f})
Definition Line.h:42
Definition AffineMatrix.h:30