colour.geometry.LineSegmentsIntersections_Specification#

class colour.geometry.LineSegmentsIntersections_Specification(xy: NDArrayFloat, intersect: NDArrayFloat, parallel: NDArrayFloat, coincident: NDArrayFloat)[source]#

Define the specification for intersection of line segments \(l_1\) and \(l_2\) returned by colour.algebra.intersect_line_segments() definition.

Parameters:
  • xy (NDArrayFloat) – Array of \(l_1\) and \(l_2\) line segments intersections coordinates. Non existing segments intersections coordinates are set with np.nan.

  • intersect (NDArrayFloat) – Array of bool indicating if line segments \(l_1\) and \(l_2\) intersect.

  • parallel (NDArrayFloat) – Array of bool indicating if line segments \(l_1\) and \(l_2\) are parallel.

  • coincident (NDArrayFloat) – Array of bool indicating if line segments \(l_1\) and \(l_2\) are coincident.

__init__(xy: NDArrayFloat, intersect: NDArrayFloat, parallel: NDArrayFloat, coincident: NDArrayFloat) None#
Parameters:
  • xy (NDArrayFloat)

  • intersect (NDArrayFloat)

  • parallel (NDArrayFloat)

  • coincident (NDArrayFloat)

Return type:

None

Methods

__init__(xy, intersect, parallel, coincident)

Attributes

xy

intersect

parallel

coincident