#include <linearsegment.hh>
◆ value_type
◆ Segment() [1/3]
◆ Segment() [2/3]
63 {
65 }
void normalize()
Definition linearsegment.hh:208
◆ Segment() [3/3]
template<typename T >
template<bool T_is_int = std::is_same_v<int, std::remove_cv_t<T>>>
Implicit conversion from Segment<int> to Segment<T>. If T!=int
70 :
start(other.getStart())
71 ,
size(other.getSize())
72 {
73 }
◆ after()
◆ before()
◆ contains() [1/2]
80 {
82 }
value_type getEnd() const
Definition linearsegment.hh:135
value_type getStart() const
Definition linearsegment.hh:133
◆ contains() [2/2]
◆ getEnd()
Referenced by Scroom::Utils::Rectangle< T >::below(), Scroom::Utils::Segment< T >::contains(), Scroom::Utils::Rectangle< T >::getBottom(), Scroom::Utils::Rectangle< T >::getBottomLeft(), Scroom::Utils::Rectangle< T >::getBottomRight(), Scroom::Utils::Rectangle< T >::getRight(), Scroom::Utils::Rectangle< T >::getTopRight(), Scroom::Utils::Segment< T >::intersection(), Scroom::Utils::Segment< T >::intersects(), Scroom::Utils::Rectangle< T >::rightOf(), and Scroom::Utils::Segment< T >::setStart().
◆ getSize()
◆ getStart()
◆ intersect()
◆ intersection()
◆ intersects()
◆ isEmpty()
◆ moveTo()
◆ normalize()
◆ operator!=()
156{ return !(*this == other); }
◆ operator&=()
181 {
183 return *this;
184 }
void intersect(const Segment< value_type > &other)
Definition linearsegment.hh:105
◆ operator*=()
169 {
172 return *this;
173 }
◆ operator+=()
159 {
161 return *this;
162 }
◆ operator-=()
164 {
166 return *this;
167 }
◆ operator/=()
175 {
178 return *this;
179 }
◆ operator==()
142 {
144 {
145 return false;
146 }
147
149 {
150 return true;
151 }
152
154 }
bool areEqual(T a, T b)
Definition linearsegment.hh:38
◆ reduceSizeToMultipleOf()
◆ setEnd()
◆ setSize()
◆ setStart()
◆ to()
template<typename T >
template<typename U >
200 {
201 return {
202 static_cast<U
>(
start),
203 static_cast<U
>(
size),
204 };
205 }
◆ size
Referenced by Scroom::Utils::Segment< T >::after(), Scroom::Utils::Segment< T >::before(), Scroom::Utils::Segment< T >::contains(), Scroom::Utils::Segment< T >::getEnd(), Scroom::Utils::Segment< T >::getSize(), Scroom::Utils::Segment< T >::moveTo(), Scroom::Utils::Segment< T >::normalize(), Scroom::Utils::Segment< T >::operator*=(), Scroom::Utils::Segment< T >::operator/=(), Scroom::Utils::Segment< T >::operator==(), Scroom::Utils::Segment< T >::reduceSizeToMultipleOf(), Scroom::Utils::Segment< T >::setEnd(), Scroom::Utils::Segment< T >::setSize(), and Scroom::Utils::Segment< T >::to().
◆ start
Referenced by Scroom::Utils::Segment< T >::after(), Scroom::Utils::Segment< T >::before(), Scroom::Utils::Segment< T >::contains(), Scroom::Utils::Segment< T >::getEnd(), Scroom::Utils::Segment< T >::getStart(), Scroom::Utils::Segment< T >::normalize(), Scroom::Utils::Segment< T >::operator*=(), Scroom::Utils::Segment< T >::operator+=(), Scroom::Utils::Segment< T >::operator-=(), Scroom::Utils::Segment< T >::operator/=(), Scroom::Utils::Segment< T >::operator==(), Scroom::Utils::Segment< T >::setEnd(), Scroom::Utils::Segment< T >::setStart(), and Scroom::Utils::Segment< T >::to().
The documentation for this class was generated from the following file: