ktk.geometry

ktk.geometry#

Provide 3d geometry and linear algebra functions related to biomechanics.

Note

As a convention, the first dimension of every array is always N and corresponds to time.

Functions

create_frames

Create an Nx4x4 series of frames based on series of points and vectors.

create_transforms

Create series of transforms based on angles, translations and scales.

get_angles

Extract Euler angles from a series of homogeneous matrices.

get_global_coordinates

Express local coordinates in the global reference frame.

get_local_coordinates

Express global coordinates in local reference frames.

isnan

Check which samples contain at least one NaN.

matmul

Matrix multiplication between series of matrices.

register_points

Find the homogeneous transforms between two series of point clouds.

rotate

Rotate a series of coordinates along given axes.

scale

Scale a series of coordinates.

translate

Translate a series of coordinates.