Creates a new empty vec2
X component
Y component
类名
X component
X component
Y component
Y component
Math.ceil the components of this
this
Math.floor the components of this
this
从数组赋值
数组
数组偏移值
this
Calculates the length of this
length of this
Performs a linear interpolation between two vec2's
interpolation amount between the two vectors
this
Negates the components of this
this
Normalize this
this
Generates a random vector with the given scale
Optionalscale: number
Length of the resulting vector. If ommitted, a unit vector will be returned
this
Math.round the components of this
this
Scales this by a scalar number
amount to scale the vector by
this
Set the components of a vec4 to the given values
X component
Y component
this
Calculates the squared length of this
squared length of this
转换到数组
数组
数组偏移值
二维向量