Function apriltag_sys::matd_vec_normalize
source · pub unsafe extern "C" fn matd_vec_normalize(
a: *const matd_t
) -> *mut matd_t
Expand description
Calculates the normalization of the supplied vector ‘a’ (i.e. a unit vector of the same dimension and orientation as ‘a’ with a magnitude of 1) and returns it as a new vector. ‘a’ must be a vector of any dimension and must have a non-zero magnitude. It is the caller’s responsibility to call matd_destroy() on the returned matrix.