Matrix4d.scaleAroundLocal
- Matrix4d scaleAroundLocal(double sx, double sy, double sz, double ox, double oy, double oz, Matrix4d dest)
- Matrix4d scaleAroundLocal(double sx, double sy, double sz, double ox, double oy, double oz)
- Matrix4d scaleAroundLocal(double factor, double ox, double oy, double oz)
struct Matrix4d
ref public return
scaleAroundLocal
- Matrix4d scaleAroundLocal(double factor, double ox, double oy, double oz, Matrix4d dest)
doml matrix_4d Matrix4d
constructorsfunctionsstatic variablesvariables
Pre-multiply scaling to this matrix by scaling all three base axes by the given <code>factor</code> while using <code>(ox, oy, oz)</code> as the scaling origin. <p> If <code>M</code> is <code>this</code> matrix and <code>S</code> the scaling matrix, then the new matrix will be <code>S * M</code>. So when transforming a vector <code>v</code> with the new matrix by using <code>S * M * v</code>, the scaling will be applied last! <p> This method is equivalent to calling: <code>new Matrix4d().translate(ox, oy, oz).scale(factor).translate(-ox, -oy, -oz).mul(this, this)</code>
@param factor the scaling factor for all three axes @param ox the x coordinate of the scaling origin @param oy the y coordinate of the scaling origin @param oz the z coordinate of the scaling origin @return this