Matrix4d.mulAffine

Multiply this matrix by the supplied <code>right</code> matrix, both of which are assumed to be {@link #isAffine() affine}, and store the result in <code>this</code>. <p> This method assumes that <code>this</code> matrix and the given <code>right</code> matrix both represent an {@link #isAffine() affine} transformation (i.e. their last rows are equal to <code>(0, 0, 0, 1)</code>) and can be used to speed up matrix multiplication if the matrices only represent affine transformations, such as translation, rotation, scaling and shearing (in any combination). <p> This method will not modify either the last row of <code>this</code> or the last row of <code>right</code>. <p> If <code>M</code> is <code>this</code> matrix and <code>R</code> the <code>right</code> matrix, then the new matrix will be <code>M * R</code>. So when transforming a vector <code>v</code> with the new matrix by using <code>M * R * v</code>, the transformation of the right matrix will be applied first!

@param right the right operand of the matrix multiplication (the last row is assumed to be <code>(0, 0, 0, 1)</code>) @return this

  1. Matrix4d mulAffine(Matrix4d right)
    struct Matrix4d
    ref return
    mulAffine
  2. Matrix4d mulAffine(Matrix4d right, Matrix4d dest)

Meta