aerocaps.geom.transformation.Transformation3D#

class Transformation3D(tx: float = 0.0, ty: float = 0.0, tz: float = 0.0, rx: float = 0.0, ry: float = 0.0, rz: float = 0.0, sx: float = 1.0, sy: float = 1.0, sz: float = 1.0, rotation_units: str = 'rad', order='rx,ry,rz,s,t')[source]#

Bases: object

__init__(tx: float = 0.0, ty: float = 0.0, tz: float = 0.0, rx: float = 0.0, ry: float = 0.0, rz: float = 0.0, sx: float = 1.0, sy: float = 1.0, sz: float = 1.0, rotation_units: str = 'rad', order='rx,ry,rz,s,t')[source]#

Allows for arbitrary 3D transformations on a set of coordinates of size \(3 \times N\)

Methods

generate_rotation_matrix_x()

generate_rotation_matrix_y()

generate_rotation_matrix_z()

generate_scale_matrix()

generate_transformation_matrix()

generate_translation_matrix()

transform(coordinates)

Computes the transformation of the coordinates.

transform(coordinates: ndarray)[source]#

Computes the transformation of the coordinates.

Parameters:

coordinates (np.ndarray) – Size N x 3, where N is the number of coordinates. The columns represent \(x\) and \(y\).