colour.algebra.LineSegmentsIntersections_Specification

class colour.algebra.LineSegmentsIntersections_Specification[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__()

Initialize self. See help(type(self)) for accurate signature.

Methods

__init__

Initialize self.

count(value)

index(value, [start, [stop]])

Raises ValueError if the value is not present.

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