irtk.transformΒΆ

Functions

batched_transform_dir(mat, vec)

Apply a batched transformation to direction vectors.

batched_transform_pos(mat, vec)

Apply a batched transformation to position vectors.

lookat(origin, target, up)

Compute a 'look-at' transformation matrix.

perspective(fov, aspect_ratio[, near, far])

Compute a perspective projection matrix.

perspective_full(fx, fy, cx, cy, aspect_ratio)

Compute a full perspective projection matrix.

rotate(axis, angle[, use_degree])

Create a rotation matrix.

rotate2D(angle[, use_degree])

Create a 2D rotation matrix.

scale(size)

Create a scaling matrix.

scale2D(size)

Create a 2D scaling matrix.

translate(t_vec)

Create a translation matrix.

translate2D(t_vec)

Create a 2D translation matrix.