Rose
Public Member Functions | Protected Attributes | List of all members
rose::Line Class Reference

An abstraction of a line defined by two end points. More...

#include <ScreenMetrics.h>

Collaboration diagram for rose::Line:
Collaboration graph
[legend]

Public Member Functions

constexpr Line () noexcept
 Construct line of zero length.
 
constexpr Line (const Position &p0, const Position &p1)
 Construct a line from p0 to p1. More...
 
constexpr Line (const Line &)=default
 Copy constructor.
 
constexpr Line (Line &&)=default
 Move Constructor.
 
constexpr Lineoperator= (const Line &)=default
 Copy assignment.
 
constexpr Lineoperator= (Line &&)=default
 Move assignment.
 

Protected Attributes

Position mPoint0
 One endpoint of the line.
 
Position mPoint1
 The other endpoint of the line.
 

Detailed Description

An abstraction of a line defined by two end points.

Constructor & Destructor Documentation

◆ Line()

constexpr rose::Line::Line ( const Position p0,
const Position p1 
)
inline

Construct a line from p0 to p1.

Parameters
p0An end point.
p1An end point.

The documentation for this class was generated from the following file: