math docs
    Preparing search index...

    Function scale

    • Scales a vec2 by a scalar number

      Parameters

      • out: vec2.Vec2

        the receiving vector

      • a: readonly [number, number]

        the vector to scale

      • b: number

        amount to scale the vector by

      Returns vec2.Vec2

      out