Create a 3D vector of the specified scalar type.
scalarTypeStorage type; i64/u64 components are bigint, others are number.
...argsx, y, z components or a source vector to convert and copy; create a zero vector if omitted.
Copy the vector and its scalar type with independent storage.
sourceThe X component; writes follow the TypedArray conversion rules for scalarType.
The Y component; writes follow the TypedArray conversion rules for scalarType.
The Z component; writes follow the TypedArray conversion rules for scalarType.
Return a new vector divided component-wise by rhs of the same type; throw RangeError if any divisor is zero.
rhsReturn a new vector multiplied component-wise by rhs of the same type.
rhsProtectedcreateReturn the cross product with vector rhs of the same type, following the right-hand rule, as a new vector.
rhsReturn the dot product with vector rhs of the same type.
rhsReturn the Euclidean length; only available for floating-point vectors.
thisReturn x²+y²+z², calculated with the current scalar type's precision and range.
Return a unit vector in the same direction; only for floating-point vectors. A zero vector throws RangeError.
this
sf::Vector3, stored as three consecutive values of its scalar type.