const SEG & GetContainedSeg() const
Gets the (one of the infinite number of) segments that the line passes through.
VECTOR2I::extended_type ecoord
SEG m_seg
Internally, we can represent a just a segment that the line passes through.
int Distance(const VECTOR2I &aPoint) const
Gets the distance from the line to the given point.
bool operator==(const LINE &aOther) const
VECTOR2I NearestPoint(const VECTOR2I &aPoint) const
Gets the nearest point on the line to the given point.
OPT_VECTOR2I Intersect(const SEG &aOther) const
LINE(const VECTOR2I &aStart, const VECTOR2I &aEnd)
VECTOR2_TRAITS< int32_t >::extended_type extended_type
std::optional< VECTOR2I > OPT_VECTOR2I