template<typename T>
recti::VSegment struct

Vertical Line Segment.

Template parameters
T

The struct VSegment is defining a vertical line segment in a rectilinear coordinate system. It is inheriting from the Point<T, Interval<T>> class, which means that it will have all the member variables and member functions of Point<T, Interval<T>>. The Interval<T> template parameter is used to define the type of the y-coordinate of the line segment, and the T template parameter is used to define the type of the x-coordinate of the line segment.

Base classes

template<typename T1 = int, typename T2 = T1>
class Point<T, Interval<T>>
Point.

Constructors, destructors, conversion operators

VSegment(T&& xcoord, Interval<T>&& ycoord) constexpr noexcept
Construct a new VSegment object.
VSegment(const T& xcoord, const Interval<T>& ycoord) constexpr
Construct a new VSegment object.
VSegment(Point<T, Interval<T>>&& base) constexpr noexcept
Construct a new VSegment object from the base object (implicitly)
VSegment(const Point<T, Interval<T>>& base) explicit constexpr
Construct a new VSegment object from the base object (implicitly)

Function documentation

template<typename T>
recti::VSegment<T>::VSegment(T&& xcoord, Interval<T>&& ycoord) constexpr noexcept

Construct a new VSegment object.

Parameters
xcoord in
ycoord in

template<typename T>
recti::VSegment<T>::VSegment(const T& xcoord, const Interval<T>& ycoord) constexpr

Construct a new VSegment object.

Parameters
xcoord in
ycoord in