N-dimensional line segment defined by a start and end point. More...
#include <line.h>
Public Types | |
| using | Pt = Point< T, N > |
| The Point type used for the endpoints of this Line. | |
Public Member Functions | |
| Line ()=default | |
| Default constructor. Both endpoints are default-constructed (zero). | |
| Line (const Pt &s, const Pt &e) | |
| Constructs a Line from a start and end point. | |
| Line (const Pt &&s, const Pt &&e) | |
| Move-constructs a Line from a start and end point. | |
| const Pt & | start () const |
| Returns a const reference to the start point. | |
| const Pt & | end () const |
| Returns a const reference to the end point. | |
N-dimensional line segment defined by a start and end point.
A simple value type representing a line segment between two Points of the same dimensionality and component type.
| T | The component value type (e.g. int, float, double). |
| N | The number of dimensions. |
Constructs a Line from a start and end point.
| s | The start point. |
| e | The end point. |
Move-constructs a Line from a start and end point.
| s | The start point (moved). |
| e | The end point (moved). |
Returns a const reference to the end point.
Returns a const reference to the start point.