49    return m_seg.LineDistance( aPoint );
 
 
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.
 
VECTOR2I NearestPoint(const VECTOR2I &aPoint) const
Gets the nearest point on the line to the given point.
 
OPT_VECTOR2I Intersect(const SEG &aOther) const
 
OPT_VECTOR2I Intersect(const SEG &aSeg, bool aIgnoreEndpoints=false, bool aLines=false) const
Compute intersection point of segment (this) with segment aSeg.
 
bool Contains(const SEG &aSeg) const
 
Define a general 2D-vector/point.
 
constexpr extended_type Dot(const VECTOR2< T > &aVector) const
Compute dot product of self with aVector.
 
std::optional< VECTOR2I > OPT_VECTOR2I
 
T rescale(T aNumerator, T aValue, T aDenominator)
Scale a number (value) by rational (numerator/denominator).
 
VECTOR2< int32_t > VECTOR2I
 
VECTOR2< int64_t > VECTOR2L