Calculate the voxel coordinates of a straight line between the two given end points
and X1 (X0) – The [x, y] or [x, y, z] coordinates of the start and end points of the line.
coords – A list of lists containing the X, Y, and Z coordinates of all voxels that should be drawn between the start and end points to create a solid line.
- Return type
list of lists
Click here to view online example.