Home | History | Annotate | Download | only in Geometry

Lines Matching refs:VectorType

45   typedef Matrix<Scalar,AmbientDimAtCompileTime,1> VectorType;
67 inline Hyperplane(const VectorType& n, const VectorType& e)
78 inline Hyperplane(const VectorType& n, const Scalar& d)
88 static inline Hyperplane Through(const VectorType& p0, const VectorType& p1)
99 static inline Hyperplane Through(const VectorType& p0, const VectorType& p1, const VectorType& p2)
101 EIGEN_STATIC_ASSERT_VECTOR_SPECIFIC_SIZE(VectorType, 3)
103 VectorType v0(p2 - p0), v1(p1 - p0);
143 inline Scalar signedDistance(const VectorType& p) const { return normal().dot(p) + offset(); }
148 inline Scalar absDistance(const VectorType& p) const { using std::abs; return abs(signedDistance(p)); }
152 inline VectorType projection(const VectorType& p) const { return p - signedDistance(p) * normal(); }
189 VectorType intersection(const Hyperplane& other) const
192 EIGEN_STATIC_ASSERT_VECTOR_SPECIFIC_SIZE(VectorType, 2)
199 return VectorType(coeffs().coeff(1), -coeffs().coeff(2)/coeffs().coeff(1)-coeffs().coeff(0));
201 return VectorType(-coeffs().coeff(2)/coeffs().coeff(0)-coeffs().coeff(1), coeffs().coeff(0));
206 return VectorType(invdet*(coeffs().coeff(1)*other.coeffs().coeff(2)-other.coeffs().coeff(1)*coeffs().coeff(2)),