intersection

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

Finds the intersection point between two LineSegments.

Returns Vector2.INFINITY if none exists.

Parameters

a

The first line segment.

b

The second line segment.

eps

How far outside the t value are intersections considered.

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

Finds the intersection point between two LineSegments.

Returns Vector2.INFINITY if none exists.

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 value are intersections considered.

fun intersection(from: ShapeContour, with: ShapeContour): Shape

Applies a boolean intersection operation between two ShapeContours.

fun intersection(from: Shape, with: ShapeContour): Shape

Applies a boolean intersection operation between a Shape and a ShapeContour.

fun intersection(from: ShapeContour, with: Shape): Shape

Applies a boolean intersection operation between a ShapeContour and Shape.

fun intersection(from: Shape, with: Shape): Shape
fun Shape.intersection(other: Shape): Shape

Applies a boolean intersection operation between two Shapes.

fun intersection(from: List<Shape>, with: ShapeContour): List<Shape>

Applies a boolean intersection operation between a List of Shapes and a ShapeContour.

fun intersection(from: List<Shape>, with: Shape): List<Shape>

Applies a boolean intersection operation between a List of Shapes and a Shape.

fun intersection(from: List<Shape>, with: List<Shape>): List<Shape>

Applies a boolean intersection operation between two Lists of Shapes.

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

Applies a boolean intersection operation iteratively between a List of Shapes and a two-dimensional List of Shapes.

with is traversed and a boolean intersection is applied between from and each element.

fun ShapeContour.intersection(other: Shape): Shape

Applies a boolean intersection operation between the ShapeContour and a Shape.