openrndr / org.openrndr.shape / intersection

intersection

fun intersection(a: LineSegment, b: LineSegment, eps: Double = 0.0): Vector2 (source)

find intersection between two line segments

Parameters

a - the first line segment

b - the second line segment

eps - how far outside the t-parameter range of 0 .. 1 are intersections considered

fun intersection(a0: Vector2, a1: Vector2, b0: Vector2, b1: Vector2, eps: Double = 0.0): Vector2 (source)

find intersection between two line segments

Parameters

a0 - the start of the first line segment

a1 - the end of the first line segment

b0 - the start of the second line segment

b1 - the end of the second line segment

eps - how far outside the t-parameter range of 0 .. 1 are intersections considered, default is 0.0

fun intersection(from: ShapeContour, with: ShapeContour): Shape (source)
fun intersection(from: Shape, with: ShapeContour): Shape (source)
fun intersection(from: ShapeContour, with: Shape): Shape (source)
fun intersection(from: Shape, with: Shape): Shape (source)
fun intersection(from: List<Shape>, with: ShapeContour): List<Shape> (source)
fun intersection(from: List<Shape>, with: Shape): List<Shape> (source)
fun intersection(from: List<Shape>, with: List<Shape>): List<Shape> (source)
@JvmName("intersectionIterative") fun intersection(from: List<Shape>, with: List<List<Shape>>): List<Shape> (source)