ccf_streamlines.linestring3d.LineString3D#
- class ccf_streamlines.linestring3d.LineString3D(coords)#
” Class for operating on 3D paths
Akin to the 2D LineString class in the shapely package (but not nearly as fully featured).
- Parameters
coords ((N, 3) array) – 3D coordinates that define the path
- __init__(coords)#
Methods
__init__
(coords)offset_of_point
(point)3D offset of a point compared to its projection to the LineString3D
project
(point[, normalized])Distance along this object to a point nearest the specified point
rotation_to_vector
(v)Rotation matrix that will align this object to a vector v
segment_lengths
()Lengths of each segment (defined by two adjacent points)