colour.algebra.LineSegmentsIntersections_Specification

class colour.algebra.LineSegmentsIntersections_Specification(xy, intersect, parallel, coincident)[source]

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

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

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

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

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

Create new instance of LineSegmentsIntersections_Specification(xy, intersect, parallel, coincident)

__init__()

Methods

__init__()

count(value, /)

Return number of occurrences of value.

index(value[, start, stop])

Return first index of value.

Attributes

coincident

Alias for field number 3

intersect

Alias for field number 1

parallel

Alias for field number 2

xy

Alias for field number 0