Vector functions:
Vector should implement its own type so we know how to do translation functions for other engines.
- vector_add: Performs element-wise addition of vectors.
- vector_subtract: Performs element-wise subtraction of vectors.
- dot_product: Computes the dot product of two vectors.
- cross_product: Computes the cross product of two vectors.
- scalar_multiply: Multiplies a vector by a scalar.
- vector_norm: Computes the Euclidean norm (magnitude) of a vector.
- unit_vector: Normalizes a vector to have a magnitude of one.
- vector_negate: Computes the negation of a vector by changing its direction.
- vector_dimension: Returns the dimension (number of elements) of a vector.
- vector_entry: Retrieves a specific entry from a vector by index.
- vector_equals: Compares vectors for equality.
- vector_hash: Generates a hash code for a vector.
- vector_multiply: Performs element-by-element multiplication. Check same dimensionality
- vector_divide: Performs element-by-element division. Check same dimensionality
Vector functions:
Vector should implement its own type so we know how to do translation functions for other engines.