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

    Class VectorXZUtils

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

    Index

    Constructors

    Methods

    • fromString

      Gets a VectorXZ from the string representation produced by VectorXZUtils.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 VectorXZUtils.toString

      Returns VectorXZ

    • magnitude

      The magnitude of a vector

      Parameters

      Returns number

    • scale

      Multiple all entries in a vector by a single scalar value producing a new vector

      Parameters

      Returns VectorXZ

    • toString

      Create a string representation of a vectorxz

      Parameters

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

      Returns string