Function swri_transform_util::GetPrimaryAxis

Function Documentation

tf2::Vector3 swri_transform_util::GetPrimaryAxis(const tf2::Vector3 &vector)

Return an axis aligned unit vector that is nearest the provided vector.

Parameters:

vector[in] The input vector.

Returns:

The axis aligned unit vector.