向量的 x 值
The X value of the current vector
向量的 y 值
The Y value of the current vector
Vector2 (Infinity, Infinity)
Vector2 (-Infinity, -Infinity)
Vector2 (1, 1)
X轴正方向
The positive direction of the X-Axis
Y轴正方向
The positive direction of the Y-Axis
Vector2 (0, 0)
向量的角度
Computes the angle in radians with respect to the horizontal left axis
弧度制,范围在 [ 0, 2 * PI ),逆时针为正
Radians in range [ 0, 2 * PI ), counterclockwise
向量的长度
Get the length of this vector.
向量长度的平方
Get the squared length of this vector.
复制当前向量
Clones this vector to a new vector
新的向量 (A new Vector)
叉乘
Computes cross product of the current vector and v
The cross product of Vector2 is just a scalar of z-axis
点乘
Computes dot product of the current vector and v
两个向量是否相等
Determines whether the current vector and v are equal
逆向量
Inverse the current vector
A new Vector2
两个向量是否正交垂直
Determines whether the current vector and v are orthogonal
两个向量是否平行
Determines whether the current vector and v are parallel
单位向量
Normalizes the current vector.
A new Vector2
设置向量的 x 值
Sets the X value of this vector
当前向量 (this vector2)
设置向量的 y 值
Sets the Y value of this vector
当前向量 (this vector2)
Generated using TypeDoc
表示二维的一个向量
Class representing a vector containing 2 coordinates