Script API - v1.21.80
    Preparing search index...

    Class Vector2Utils

    Utilities operating on Vector2 objects. All methods are static and do not modify the input objects.

    Index

    Constructors

    Methods

    Constructors

    Methods

    • fromString

      Gets a Vector2 from the string representation produced by Vector3Utils.toString. If any numeric value is not a number or the format is invalid, undefined is returned.

      Parameters

      • str: string

        The string to parse

      • Optionaldelimiter: string

        The delimiter used to separate the components. Defaults to the same as the default for Vector3Utils.toString

      Returns Vector2

    • toString

      Create a string representation of a vector2

      Parameters

      • v: Vector2
      • Optionaloptions: { decimals?: number; delimiter?: string }

      Returns string