Lines Matching full:scalar
21 * \param _Scalar the type of the scalar coefficients
32 typedef _Scalar Scalar;
33 typedef typename NumTraits<Scalar>::Real RealScalar;
34 typedef Matrix<Scalar,AmbientDimAtCompileTime,1> VectorType;
61 m_min.setConstant( (std::numeric_limits<Scalar>::max)());
62 m_max.setConstant(-(std::numeric_limits<Scalar>::max)());
102 inline Scalar squaredExteriorDistance(const VectorType& p) const;
108 inline Scalar exteriorDistance(const VectorType& p) const
111 /** \returns \c *this with scalar type casted to \a NewScalarType
113 * Note that if \a NewScalarType is equal to the current scalar type of \c *this
124 /** Copy constructor with scalar type conversion */
128 m_min = (other.min)().template cast<Scalar>();
129 m_max = (other.max)().template cast<Scalar>();
136 bool isApprox(const AlignedBox& other, typename NumTraits<Scalar>::Real prec = precision<Scalar>()) const
144 template<typename Scalar,int AmbiantDim>
145 inline Scalar AlignedBox<Scalar,AmbiantDim>::squaredExteriorDistance(const VectorType& p) const
147 Scalar dist2(0);
148 Scalar aux;
151 if ((aux = (p[k]-m_min[k]))<Scalar(0))
153 else if ( (aux = (m_max[k]-p[k]))<Scalar(0))