Function xr_vec3

Source
pub fn xr_vec3(v: Vec3) -> Vector3f
Expand description

Converts the crate’s lightweight vector to an OpenXR vector unchanged.

§Examples

use ailloli_ui_openxr::math::Vec3;
use ailloli_ui_openxr::openxr_runtime::panel::xr_vec3;
let vector = xr_vec3(Vec3::new(1.0, 2.0, 3.0));
assert_eq!((vector.x, vector.y, vector.z), (1.0, 2.0, 3.0));