math docs
    Preparing search index...

    Function getScaling

    • Returns the scaling factor component of a transformation matrix. If a matrix is built with fromRotationTranslationScale with a normalized Quaternion parameter, the returned vector will be the same as the scaling vector originally supplied.

      Parameters

      • out: vec3.Vec3

        Vector to receive scaling factor component

      • mat: mat4.Mat4

        Matrix to be decomposed (input)

      Returns vec3.Vec3

      out