Function veloren_voxygen::scene::math::clip_points_by_plane

source ยท
pub fn clip_points_by_plane<T: Float + MulAdd<T, T, Output = T> + Debug>(
    points: &mut Vec<Vec3<T>>,
    plane: Vec4<T>,
    intersection_points: &mut Vec<Vec3<T>>,
) -> bool
Expand description

Returns true if and only if the final point in the polygon (i.e. the first point added to the new polygon) is outside the clipping plane (this implies that the polygon must be non-degenerate).