pytransform3d.camera.make_world_line

pytransform3d.camera.make_world_line(p1, p2, n_points)[source]

Generate line in world coordinate frame.

Parameters
p1array-like, shape (2 or 3,)

Start point of the line

p2array-like, shape (2 or 3,)

End point of the line

n_pointsint

Number of points

Returns
linearray-like, shape (n_points, 4)

Samples from line in world frame

Examples using pytransform3d.camera.make_world_line