ct.transform

Functions for transforming points in 3D space.

ct.transform.transform_points(points, transform_mat)[source]

Transform points by a 4x4 matrix via homogenous coordinates projection.

Parameters:
  • points (Float[ndarray, 'n 3']) – (N, 3) array.

  • mat – (4, 4) array, the transformation matrix.

Returns:

(N, 3) array, the transformed points.

Return type:

Float[ndarray, ‘n 3’]

ct.transform.transform_point(point, transform_mat)[source]

Transform a single point by a 4x4 matrix via homogenous coordinates projection.

Parameters:
  • point (Float[ndarray, '3']) – (3,) array.

  • mat – (4, 4) array, the transformation matrix.

Returns:

(3,) array, the transformed point.

Return type:

Float[ndarray, ‘3’]