静态
fromfromString
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.
The string to parse
可选
delimiter: stringThe delimiter used to separate the components. Defaults to the same as the default for Vector3Utils.toString
静态
totoString
Create a string representation of a vector2
将 Vector2 转换为字符串形式。
可选
options: { decimals?: number; delimiter?: string }
Utilities operating on Vector2 objects. All methods are static and do not modify the input objects.
操作 Vector2 对象的工具类。所有方法都是静态的,并且不会修改输入对象。