1.8 |
A line, with a starting and ending point. More...
Public Types | |
using | DimType = Dim |
Helper to reference the dimension type. More... | |
Public Member Functions | |
constexpr | LineType (const PointType< Dim > &start, const PointType< Dim > &end) noexcept |
constexpr EGT_NODISCARD PointType< Dim > | end () const noexcept |
Get the end point of the line. More... | |
constexpr void | end (const PointType< Dim > &end) noexcept |
Set the end point of the line. More... | |
constexpr EGT_NODISCARD RectType< Dim > | rect () const noexcept |
Returns a rectangle containing the line. More... | |
constexpr EGT_NODISCARD PointType< Dim > | start () const noexcept |
Get the start point of the line. More... | |
constexpr void | start (const PointType< Dim > &start) noexcept |
Set the start point of the line. More... | |
Protected Attributes | |
PointType< Dim > | m_end |
End point of the line. More... | |
PointType< Dim > | m_start |
Start point of the line. More... | |
A line, with a starting and ending point.
using DimType = Dim |
Helper to reference the dimension type.
|
inlineexplicitconstexprnoexcept |
[in] | start | Start point of the line. |
[in] | end | End point of the line. |
|
inlineconstexprnoexcept |
Get the end point of the line.
|
inlineconstexprnoexcept |
Set the end point of the line.
|
inlineconstexprnoexcept |
Returns a rectangle containing the line.
|
inlineconstexprnoexcept |
Get the start point of the line.
|
inlineconstexprnoexcept |
Set the start point of the line.
|
protected |
End point of the line.
|
protected |
Start point of the line.