mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
norm2() renamed to squaredNorm(), kept as deprecated for now.
This commit is contained in:
@@ -32,13 +32,13 @@ inline Scalar& at(uint i, uint j) { return this->operator()(i,j); }
|
||||
inline Scalar at(uint i) const { return this->operator[](i); }
|
||||
inline Scalar& at(uint i) { return this->operator[](i); }
|
||||
|
||||
inline RealScalar squaredLength() const { return norm2(); }
|
||||
inline RealScalar squaredLength() const { return squaredNorm(); }
|
||||
inline RealScalar length() const { return norm(); }
|
||||
inline RealScalar invLength(void) const { return fast_inv_sqrt(norm2()); }
|
||||
inline RealScalar invLength(void) const { return fast_inv_sqrt(squaredNorm()); }
|
||||
|
||||
template<typename OtherDerived>
|
||||
inline Scalar squaredDistanceTo(const MatrixBase<OtherDerived>& other) const
|
||||
{ return (derived() - other.derived()).norm2(); }
|
||||
{ return (derived() - other.derived()).squaredNorm(); }
|
||||
|
||||
template<typename OtherDerived>
|
||||
inline RealScalar distanceTo(const MatrixBase<OtherDerived>& other) const
|
||||
|
||||
Reference in New Issue
Block a user