Functions§
- free_
vector_ ⚠components Deprecated - free_
vector_ ⚠memory Deprecated - new_
vector3 ⚠Deprecated - normalize_
vector ⚠Deprecated - scale_
vector ⚠Deprecated - vector_
add ⚠Deprecated - vector_
cross_ ⚠product Deprecated - vector_
dot_ ⚠product Deprecated - vector_
get_ ⚠components Deprecated - vector_
get_ ⚠normalized Deprecated - vector_
get_ ⚠scaled Deprecated - vector_
set_ ⚠x Deprecated - vector_
set_ ⚠y Deprecated - vector_
set_ ⚠z Deprecated - vector_
subtract ⚠Deprecated - viam_
free_ ⚠vector_ components - Free memory of an array of vector components at the given address.
- viam_
free_ ⚠vector_ memory - Free memory at the address of the vector pointer.
- viam_
new_ vector3 - Initialize a 3-vector from raw components and retrieve the C pointer to its address.
- viam_
normalize_ ⚠vector - Normalizes an existing vector stored at the address of a pointer (vec_ptr)
- viam_
scale_ ⚠vector - Scales an existing vector stored at the address of a pointer (vec_ptr) by a float factor
- viam_
vector_ ⚠add - Adds two vectors and returns a pointer to the memory of the result
- viam_
vector_ ⚠cross_ product - Computes the cross product of two vectors and returns a pointer to the memory of the result
- viam_
vector_ ⚠dot_ product - Computes the dot product of two vectors
- viam_
vector_ ⚠get_ components - Get the components of a vector as a list of C doubles, the order of the components will be (x, y, z).
- viam_
vector_ ⚠get_ normalized - Initializes a normalized copy of a vector stored at the address of a pointer (vec_ptr) and returns a pointer to the memory of the result
- viam_
vector_ ⚠get_ scaled - Initializes a scaled copy of a vector stored at the address of a pointer (vec_ptr) and returns a pointer to the memory of the result
- viam_
vector_ ⚠set_ x - Set the x component of an existing vector stored at the address of a pointer.
- viam_
vector_ ⚠set_ y - Set the y component of an existing vector stored at the address of a pointer.
- viam_
vector_ ⚠set_ z - Set the z component of an existing vector stored at the address of a pointer.
- viam_
vector_ ⚠subtract - Subtracts two vectors and returns a pointer to the memory of the result