Home | History | Annotate | Download | only in Geometry

Lines Matching full:scalar

24   * \param _Scalar the scalar type, i.e., the type of the coefficients
38 typedef _Scalar Scalar;
39 typedef typename NumTraits<Scalar>::Real RealScalar;
40 typedef Matrix<Scalar,AmbientDimAtCompileTime,1> VectorType;
41 typedef Matrix<Scalar,int(AmbientDimAtCompileTime)==Dynamic
67 inline Hyperplane(const VectorType& n, Scalar d)
102 explicit Hyperplane(const ParametrizedLine<Scalar, AmbientDimAtCompileTime>& parametrized)
122 inline Scalar signedDistance(const VectorType& p) const { return p.eigen2_dot(normal()) + offset(); }
127 inline Scalar absDistance(const VectorType& p) const { return ei_abs(signedDistance(p)); }
146 inline const Scalar& offset() const { return m_coeffs.coeff(dim()); }
150 inline Scalar& offset() { return m_coeffs(dim()); }
171 Scalar det = coeffs().coeff(0) * other.coeffs().coeff(1) - coeffs().coeff(1) * other.coeffs().coeff(0);
174 if(ei_isMuchSmallerThan(det, Scalar(1)))
183 Scalar invdet = Scalar(1) / det;
216 inline Hyperplane& transform(const Transform<Scalar,AmbientDimAtCompileTime>& t,
224 /** \returns \c *this with scalar type casted to \a NewScalarType
226 * Note that if \a NewScalarType is equal to the current scalar type of \c *this
237 /** Copy constructor with scalar type conversion */
240 { m_coeffs = other.coeffs().template cast<Scalar>(); }
246 bool isApprox(const Hyperplane& other, typename NumTraits<Scalar>::Real prec = precision<Scalar>()) const