math docs
    Preparing search index...

    Function subtractScalar

    • Subtracts a scalar value from all components of a vec2

      Parameters

      • out: vec2.Vec2

        the receiving vector

      • a: readonly [number, number]

        the source vector

      • b: number

        the scalar value to subtract

      Returns vec2.Vec2

      out