1.10 |
A line, with a starting and ending point. More...
#include <geometry.h>
Public Types | |
using | DimType = Dim |
Helper to reference the dimension type. | |
Public Member Functions | |
constexpr | LineType (const PointType< Dim > &start, const PointType< Dim > &end) noexcept |
EGT_NODISCARD constexpr PointType< Dim > | end () const noexcept |
Get the end point of the line. | |
constexpr void | end (const PointType< Dim > &end) noexcept |
Set the end point of the line. | |
EGT_NODISCARD constexpr RectType< Dim > | rect () const noexcept |
Returns a rectangle containing the line. | |
EGT_NODISCARD constexpr PointType< Dim > | start () const noexcept |
Get the start point of the line. | |
constexpr void | start (const PointType< Dim > &start) noexcept |
Set the start point of the line. | |
Protected Attributes | |
PointType< Dim > | m_end |
End point of the line. | |
PointType< Dim > | m_start |
Start point of the line. | |
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.