26 #ifndef WFMATH_LINE_FUNCS_H 27 #define WFMATH_LINE_FUNCS_H 29 #include <wfmath/line.h> 36 size_type size = m_points.size();
37 if (size != l.m_points.size()) {
41 for (size_type i = 0; i < size; ++i) {
42 if (!
Equal(m_points[i], l.m_points[i], epsilon)) {
53 for (iterator i = m_points.begin(); i != m_points.end(); ++i) {
64 for (iterator i = m_points.begin(); i != m_points.end(); ++i) {
73 #endif // WFMATH_LINE_FUNCS_H bool Equal(const C &c1, const C &c2, CoordType epsilon=numeric_constants< CoordType >::epsilon())
Test for equality up to precision epsilon.
Definition: const.h:158
Line & rotatePoint(const RotMatrix< dim > &m, const Point< dim > &p)
shape: rotate the shape while holding the Point p fixed.
Definition: line_funcs.h:61
Generic library namespace.
Definition: atlasconv.h:45
bool isEqualTo(const Line &s, CoordType epsilon=numeric_constants< CoordType >::epsilon()) const
generic: check if two classes are equal, up to a given tolerance
Definition: line_funcs.h:34
Line & shift(const Vector< dim > &v)
shape: move the shape by an amount given by the Vector v
Definition: line_funcs.h:51
A dim dimensional rotation matrix. Technically, a member of the group O(dim).
Definition: const.h:53
A dim dimensional vector.
Definition: const.h:55
A dim dimensional line.
Definition: line.h:42
float CoordType
Basic floating point type.
Definition: const.h:140
A dim dimensional point.
Definition: const.h:50