colour.geometry.LineSegmentsIntersections_Specification#
- class colour.geometry.LineSegmentsIntersections_Specification(xy: ndarray, intersect: ndarray, parallel: ndarray, coincident: ndarray)[source]#
Define the specification for intersection of line segments \(l_1\) and \(l_2\) returned by
colour.algebra.intersect_line_segments()
definition.- Parameters:
xy (numpy.ndarray) – Array of \(l_1\) and \(l_2\) line segments intersections coordinates. Non existing segments intersections coordinates are set with np.nan.
intersect (numpy.ndarray) – Array of bool indicating if line segments \(l_1\) and \(l_2\) intersect.
parallel (numpy.ndarray) – Array of
bool
indicating if line segments \(l_1\) and \(l_2\) are parallel.coincident (numpy.ndarray) – Array of
bool
indicating if line segments \(l_1\) and \(l_2\) are coincident.
Methods
__init__
(xy, intersect, parallel, coincident)Attributes
xy
intersect
parallel
coincident