@minecraft
    正在准备搜索索引...

    类 Vector3Utils

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

    操作 Vector3 对象的工具类。所有方法都是静态的,并且不会修改输入对象。

    索引

    构造函数

    方法

    • fromString

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

      参数

      • str: string

        The string to parse

      • 可选delimiter: string

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

      返回 Vector3

    • scale

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

      使用单一标量值乘以向量中的所有元素,生成一个新的向量。

      参数

      返回 Vector3

    • toString

      Create a string representation of a vector3

      以指定的格式返回向量的字符串表示。

      参数

      • v: Vector3
      • 可选options: { decimals?: number; delimiter?: string }

      返回 string