Line

template<class T>
class Line
#include <line.hpp>

Line defined by its cartesian equation ax + by + c = 0.

Public Functions

inline Line(const T a, const T b, const T c)
inline Line(const Vect2<T> A, const Vect2<T> B)
inline bool containsPoint(const Vect2<T> M) const

Check if a point belongs to the line.

inline T a() const
inline T b() const
inline T c() const

Private Members

T m_a
T m_b
T m_c