Function glm::ext::is_perpendicular
[−]
[src]
pub fn is_perpendicular<F: BaseFloat, T: GenFloatVec<F>>(x: T, y: T) -> bool
Returns true
if vector x
is perpendicular to y
, i.e., angle between
x
and y
is π/2.
Example
use glm::ext::is_perpendicular; let x = glm::vec2(1., 0.); let y = glm::vec2(0., 1.); assert!(is_perpendicular(x, y));