colour.algebra.LineSegmentsIntersections_Specification

class colour.algebra.LineSegmentsIntersections_Specification(xy: numpy.ndarray, intersect: numpy.ndarray, parallel: numpy.ndarray, coincident: numpy.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.

Return type

None

__init__(xy: numpy.ndarray, intersect: numpy.ndarray, parallel: numpy.ndarray, coincident: numpy.ndarray) None
Parameters
Return type

None

Methods

__init__(xy, intersect, parallel, coincident)

Attributes

xy

intersect

parallel

coincident