Return the 3 dimensional zero vector

pwu::Vector3 zero

Return a vector with the given x, y and z components

pwu::Vector3 set x y z

Return the value of the vector at the given index

pwu::Vector3 index vec i

Return the x component of the vector

pwu::Vector3 x vec

Return the y component of the vector

pwu::Vector3 y vec

Return the z component of the vector

pwu::Vector3 z vec

Check if two vectors are equal

pwu::Vector3 equal ?-tolerance tol? vec1 vec2

Check if two vectors are not equal

pwu::Vector3 notEqual ?-tolerance tol? vec1 vec2

Add two vectors together and return the result

pwu::Vector3 add vec1 vec2

Subtract one vector from another and return the result

pwu::Vector3 subtract vec1 vec2

Return the negation of a vector

pwu::Vector3 negate vec

Scale a vector by a single scalar value

pwu::Vector3 scale vec scalar

Scale a vector by inverse of a single scalar value

pwu::Vector3 divide vec scalar

Return a vector that is the components of two vectors multiplied together

pwu::Vector3 multiply vec1 vec2

Return the cross product of two vectors

pwu::Vector3 cross vec1 vec2

Calculate the dot product of two vectors

pwu::Vector3 dot vec1 vec2

Return the normalization of a vector

pwu::Vector3 normalize ?-length lenVar? vec

Return the length of the vector

pwu::Vector3 length vec

Return the distance of the vector to a line

pwu::Vector3 distanceToLine vec pt dir

Return a vector that has the minimum components of two vectors

pwu::Vector3 minimum vec1 vec2

Return a vector that has the maximum components of two vectors

pwu::Vector3 maximum vec1 vec2

Return a vector that is the affine combination of two vectors

pwu::Vector3 affine s vec1 vec2

Return a vector that has the barycentric coordinates of the given point in the frame of the given three vectors

pwu::Vector3 barycentric pt vec1 vec2 vec3