[]Function rusty_engine::prelude::glm::triangle_normal

pub fn triangle_normal<N>(
    p1: &Matrix<N, U3, U1, <DefaultAllocator as Allocator<N, U3, U1>>::Buffer>,
    p2: &Matrix<N, U3, U1, <DefaultAllocator as Allocator<N, U3, U1>>::Buffer>,
    p3: &Matrix<N, U3, U1, <DefaultAllocator as Allocator<N, U3, U1>>::Buffer>
) -> Matrix<N, U3, U1, <DefaultAllocator as Allocator<N, U3, U1>>::Buffer> where
    N: RealField

The normal vector of the given triangle.

The normal is computed as the normalized vector cross(p2 - p1, p3 - p1).