[][src]Function nalgebra_glm::comp_mul

pub fn comp_mul<N: Number, R: Dimension, C: Dimension>(m: &TMat<N, R, C>) -> N where
    DefaultAllocator: Alloc<N, R, C>, 

The product of every component of the given matrix or vector.

Examples:

let vec = glm::vec2(3.0, 4.0);
assert_eq!(12.0, glm::comp_mul(&vec));

let mat = glm::mat2(1.0, 1.0, -3.0, 3.0);
assert_eq!(-9.0, glm::comp_mul(&mat));

See also: