wfmath
1.0.3
A math library for the Worldforge system.
|
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
A dim dimensional rotation matrix. Technically, a member of the group O(dim).
Line & rotatePoint(const RotMatrix< dim > &m, const Point< dim > &p)
shape: rotate the shape while holding the Point p fixed.
Generic library namespace.
A dim dimensional vector.
double CoordType
Basic floating point type.
Line & shift(const Vector< dim > &v)
shape: move the shape by an amount given by the Vector v
bool isEqualTo(const Line &s, CoordType epsilon=numeric_constants< CoordType >::epsilon()) const
generic: check if two classes are equal, up to a given tolerance