28 template<
typename _Scalar,
int _Dim>
32 EIGEN_MAKE_ALIGNED_OPERATOR_NEW_IF_VECTORIZABLE_FIXED_SIZE(_Scalar,_Dim)
55 inline Translation(
const Scalar& sx,
const Scalar& sy)
62 inline Translation(
const Scalar& sx,
const Scalar& sy,
const Scalar& sz)
70 explicit inline Translation(
const VectorType& vector) : m_coeffs(vector) {}
72 const VectorType& vector()
const {
return m_coeffs; }
73 VectorType& vector() {
return m_coeffs; }
80 inline TransformType
operator* (
const ScalingType& other)
const;
83 inline TransformType
operator* (
const LinearMatrixType& linear)
const;
85 template<
typename Derived>
103 inline TransformType
operator* (
const TransformType& t)
const;
106 inline VectorType
operator* (
const VectorType& other)
const 107 {
return m_coeffs + other; }
114 m_coeffs = other.m_coeffs;
123 template<
typename NewScalarType>
128 template<
typename OtherScalarType>
130 { m_coeffs = other.vector().template cast<Scalar>(); }
137 {
return m_coeffs.isApprox(other.m_coeffs, prec); }
150 template<
typename Scalar,
int Dim>
156 res.
linear().diagonal() = other.coeffs();
162 template<
typename Scalar,
int Dim>
175 template<
typename Scalar,
int Dim>
179 TransformType res = t;
180 res.pretranslate(m_coeffs);
Definition: XprHelper.h:393
Translation()
Default constructor without initialization.
Definition: Translation.h:53
Matrix< Scalar, Dim, Dim > LinearMatrixType
corresponding linear transformation matrix type
Definition: Translation.h:40
iterative scaling algorithm to equilibrate rows and column norms in matrices
Definition: TestIMU_Common.h:87
Holds information about the various numeric (i.e.
Definition: NumTraits.h:88
Transform< Scalar, Dim > TransformType
corresponding affine transformation type
Definition: Translation.h:44
RotationMatrixType toRotationMatrix() const
Definition: RotationBase.h:39
Definition: ForwardDeclarations.h:236
Translation operator*(const Translation &other) const
Concatenates two translation.
Definition: Translation.h:76
internal::cast_return_type< Translation, Translation< NewScalarType, Dim > >::type cast() const
Definition: Translation.h:124
Translation inverse() const
Definition: Translation.h:110
Translation(const Translation< OtherScalarType, Dim > &other)
Copy constructor with scalar type conversion.
Definition: Translation.h:129
Common base class for compact rotation representations.
Definition: ForwardDeclarations.h:231
Derived & setZero(Index size)
Resizes to the given size, and sets all coefficients in this expression to zero.
Definition: CwiseNullaryOp.h:515
_Scalar Scalar
the scalar type of the coefficients
Definition: Translation.h:36
bool isApprox(const Translation &other, typename NumTraits< Scalar >::Real prec=precision< Scalar >()) const
Definition: Translation.h:136
Matrix< Scalar, Dim, 1 > VectorType
corresponding vector type
Definition: Translation.h:38
Translation(const VectorType &vector)
Constructs and initialize the scaling transformation from a vector of scaling coefficients.
Definition: Translation.h:70
Scaling< Scalar, Dim > ScalingType
corresponding scaling transformation type
Definition: Translation.h:42