intersection

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.


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.


Applies a boolean intersection operation between two ShapeContours.


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


Applies a boolean intersection operation between a ShapeContour and Shape.


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

Applies a boolean intersection operation between two Shapes.


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


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

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


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

Applies a boolean intersection operation between two Lists of Shapes.


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

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.


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