distance3d.random.randn_line_segment

distance3d.random.randn_line_segment(random_state, scale=1.0)[source]

Sample 3D line segment.

Parameters:
random_statenp.random.RandomState

Random number generator.

scalefloat, optional (default: 1)

Scale of points sampled from normal distribution.

Returns:
segment_startarray, shape (3,)

Start point of segment sampled from a normal distribution.

segment_endarray, shape (3,)

End point of segment sampled from a normal distribution.