Creates a new empty vec3
X component
Y component
Z component
类名
X component
X component
Y component
Y component
Z component
Z 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 vec3'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
Rotate this 3D vector around the x-axis
The origin of the rotation
The angle of rotation
this
Rotate this 3D vector around the y-axis
The origin of the rotation
The angle of rotation
this
Rotate this 3D vector around the z-axis
The origin of the rotation
The angle of rotation
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 vec3 to the given values
X component
Y component
Z component
this
Calculates the squared length of this
squared length of this
转换到数组
数组
数组偏移值
Transforms the vec3 direction with a mat4
matrix to transform with
this
Transforms the vec3 with a quat
quaternion to transform with
this
三维向量