静态add静态clamp静态distance静态dot静态equals静态floor静态fromfromString
Gets a Vector2 from the string representation produced by Vector2Utils.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 Vector2Utils.toString
静态lerp静态magnitude静态multiplymultiply
Element-wise multiplication of two vectors together. Not to be confused with Vector2Utils.dot product
静态normalize静态scale静态slerp静态subtract静态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 对象的工具类。所有方法都是静态的,并且不会修改输入对象。