Function glm::builtin::cross [] [src]

pub fn cross<F: BaseFloat>(x: Vector3<F>, y: Vector3<F>) -> Vector3<F>

Returns the cross product of x and y.

Example

use glm::vec3;

let x = vec3(1.0, 0.0, 0.0);
let y = vec3(0.0, 1.0, 0.0);
let z = vec3(0.0, 0.0, 1.0);
assert_eq!(glm::cross(x, y), z);