organoid_tracker.imaging.lines module
Oper
- class organoid_tracker.imaging.lines.Line3(point1: Vector3, point2: Vector3)
Bases:
object
Defines a line in a three dimensional space.
- organoid_tracker.imaging.lines.direction_to_point(line: Line3, point: Vector3) float
Gets the 1D direction of a point towards a line. If the line is pointing upwards (read: parallel with the -axis), then this simply returns the same value as angles.direction_2d(vector, point_on_line). Returns a number from 0 to 360.
Note that is doesn’t matter in which direction the line is defined.