Readonly
Calculate length
normalized vector,
vector normalized to length = 1
add vector
addend
addition result
clone vector
cross product
new Vec3 instance containing cross product
divide vector with scalar
scalar
multiplication result
dot product
check for equality
multiply vector with scalar
Sets the values of this vector
subtract vector
subtraction result
Convert to array
Convert to string, in the form of (x, y)
(x, y)
Static
Create vector from Array
array of numbers
Create vector with x = y = n
the number
the dimension
Calculate length