Function transform_point_cloud

Source
pub fn transform_point_cloud<T, const N: usize, R>(
    source_points: &[Point<T, N>],
    isometry_matrix: Isometry<T, R, N>,
) -> Vec<Point<T, N>> 
where T: RealField, R: AbstractRotation<T, N>,
Expand description

Transform a point cloud, returning a transformed copy. This function does not mutate the original point cloud.

§Arguments

  • source_points: a slice of Point, representing the point cloud
  • isometry_matrix: a transform that implements AbstractRotation, to use for the transformation.

§Generics

§Returns

A Vec of Point containing the transformed point cloud.