math docs
    Preparing search index...

    Function addScalar

    • Adds a scalar value to 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 add

      Returns vec2.Vec2

      out