math docs
    Preparing search index...

    Function subtractScalar

    • Subtracts a scalar value from all components of a vec3

      Parameters

      • out: vec3.Vec3

        the receiving vector

      • a: readonly [number, number, number]

        the source vector

      • b: number

        the scalar value to subtract

      Returns vec3.Vec3

      out