# Intersection

Artifact: [androidx.ink:ink-geometry](https://developer.android.com/jetpack/androidx/releases/ink) [View Source](https://cs.android.com/search?q=file:androidx/ink/geometry/Intersection.kt+class:androidx.ink.geometry.Intersection) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/ink#1.0.0)

*** ** * ** ***


```
public static class Intersection
```

<br />

*** ** * ** ***

Contains functions for intersection of ink geometry classes. For Kotlin callers, these are available as extension functions on the geometry classes themselves.

## Summary

| ### Public fields |
|---|---|
| `static @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/geometry/Intersection` | `https://developer.android.com/reference/androidx/ink/geometry/Intersection#INSTANCE()` |

| ### Public methods |
|---|---|
| `static final boolean` | `https://developer.android.com/reference/androidx/ink/geometry/Intersection#(androidx.ink.geometry.Box).intersects(androidx.ink.geometry.Box)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/geometry/Box receiver, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/geometry/Box other)` Returns true when a `https://developer.android.com/reference/androidx/ink/geometry/Box` intersects with `https://developer.android.com/reference/androidx/ink/geometry/Intersection#(androidx.ink.geometry.Box).intersects(androidx.ink.geometry.Box)` --- When it has at least one point in common with `https://developer.android.com/reference/androidx/ink/geometry/Intersection#(androidx.ink.geometry.Box).intersects(androidx.ink.geometry.Box)`'s interior, edges, or vertices. |
| `static final boolean` | `https://developer.android.com/reference/androidx/ink/geometry/Intersection#(androidx.ink.geometry.Box).intersects(androidx.ink.geometry.Parallelogram)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/geometry/Box receiver, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/geometry/Parallelogram parallelogram)` Returns true when a `https://developer.android.com/reference/androidx/ink/geometry/Box` intersects with a `https://developer.android.com/reference/androidx/ink/geometry/Parallelogram` --- When it has at least one point in common with the `https://developer.android.com/reference/androidx/ink/geometry/Parallelogram`'s interior, edges, or vertices. |
| `static final boolean` | `https://developer.android.com/reference/androidx/ink/geometry/Intersection#(androidx.ink.geometry.Box).intersects(androidx.ink.geometry.Vec)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/geometry/Box receiver, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/geometry/Vec point)` Returns true when the `https://developer.android.com/reference/androidx/ink/geometry/Box` intersects with a point (a `https://developer.android.com/reference/androidx/ink/geometry/Vec`). |
| `static final boolean` | `https://developer.android.com/reference/androidx/ink/geometry/Intersection#(androidx.ink.geometry.Box).intersects(androidx.ink.geometry.Segment)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/geometry/Box receiver, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/geometry/Segment segment)` Returns true when a `https://developer.android.com/reference/androidx/ink/geometry/Box` intersects with a `https://developer.android.com/reference/androidx/ink/geometry/Segment` --- when the `https://developer.android.com/reference/androidx/ink/geometry/Intersection#(androidx.ink.geometry.Box).intersects(androidx.ink.geometry.Segment)` has at least one point in common with the `https://developer.android.com/reference/androidx/ink/geometry/Box`'s interior, edges, or vertices |
| `static final boolean` | `https://developer.android.com/reference/androidx/ink/geometry/Intersection#(androidx.ink.geometry.Box).intersects(androidx.ink.geometry.Triangle)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/geometry/Box receiver, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/geometry/Triangle triangle)` Returns true when a `https://developer.android.com/reference/androidx/ink/geometry/Box` intersects with a `https://developer.android.com/reference/androidx/ink/geometry/Triangle` --- When the `https://developer.android.com/reference/androidx/ink/geometry/Intersection#(androidx.ink.geometry.Box).intersects(androidx.ink.geometry.Triangle)` has at least one point in common with the `https://developer.android.com/reference/androidx/ink/geometry/Box`'s interior, edges, or vertices. |
| `static final boolean` | `https://developer.android.com/reference/androidx/ink/geometry/Intersection#(androidx.ink.geometry.Parallelogram).intersects(androidx.ink.geometry.Box)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/geometry/Parallelogram receiver, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/geometry/Box box)` Returns true when a `https://developer.android.com/reference/androidx/ink/geometry/Parallelogram` intersects with a `https://developer.android.com/reference/androidx/ink/geometry/Box` --- When the `https://developer.android.com/reference/androidx/ink/geometry/Intersection#(androidx.ink.geometry.Parallelogram).intersects(androidx.ink.geometry.Box)` has at least one point in common with the `https://developer.android.com/reference/androidx/ink/geometry/Parallelogram`'s interior, edges, or vertices. |
| `static final boolean` | `https://developer.android.com/reference/androidx/ink/geometry/Intersection#(androidx.ink.geometry.Parallelogram).intersects(androidx.ink.geometry.Parallelogram)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/geometry/Parallelogram receiver, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/geometry/Parallelogram other)` Returns true when a `https://developer.android.com/reference/androidx/ink/geometry/Parallelogram` intersects with `https://developer.android.com/reference/androidx/ink/geometry/Intersection#(androidx.ink.geometry.Parallelogram).intersects(androidx.ink.geometry.Parallelogram)` --- When it has at least one point in common with `https://developer.android.com/reference/androidx/ink/geometry/Intersection#(androidx.ink.geometry.Parallelogram).intersects(androidx.ink.geometry.Parallelogram)`'s interior, edges, or vertices. |
| `static final boolean` | `https://developer.android.com/reference/androidx/ink/geometry/Intersection#(androidx.ink.geometry.Parallelogram).intersects(androidx.ink.geometry.Vec)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/geometry/Parallelogram receiver, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/geometry/Vec point)` Returns true when the `https://developer.android.com/reference/androidx/ink/geometry/Parallelogram` intersects with a point (a `https://developer.android.com/reference/androidx/ink/geometry/Vec`). |
| `static final boolean` | `https://developer.android.com/reference/androidx/ink/geometry/Intersection#(androidx.ink.geometry.Parallelogram).intersects(androidx.ink.geometry.Segment)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/geometry/Parallelogram receiver, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/geometry/Segment segment)` Returns true when a `https://developer.android.com/reference/androidx/ink/geometry/Parallelogram` intersects with a `https://developer.android.com/reference/androidx/ink/geometry/Segment` --- when the `https://developer.android.com/reference/androidx/ink/geometry/Intersection#(androidx.ink.geometry.Parallelogram).intersects(androidx.ink.geometry.Segment)` has at least one point in common with the `https://developer.android.com/reference/androidx/ink/geometry/Parallelogram`'s interior, edges, or vertices. |
| `static final boolean` | `https://developer.android.com/reference/androidx/ink/geometry/Intersection#(androidx.ink.geometry.Parallelogram).intersects(androidx.ink.geometry.Triangle)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/geometry/Parallelogram receiver, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/geometry/Triangle triangle)` Returns true when a `https://developer.android.com/reference/androidx/ink/geometry/Parallelogram` intersects with a `https://developer.android.com/reference/androidx/ink/geometry/Triangle` --- When the `https://developer.android.com/reference/androidx/ink/geometry/Intersection#(androidx.ink.geometry.Parallelogram).intersects(androidx.ink.geometry.Triangle)` has at least one point in common with the `https://developer.android.com/reference/androidx/ink/geometry/Parallelogram`'s interior, edges, or vertices. |
| `static final boolean` | `https://developer.android.com/reference/androidx/ink/geometry/Intersection#(androidx.ink.geometry.Segment).intersects(androidx.ink.geometry.Box)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/geometry/Segment receiver, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/geometry/Box box)` Returns true when a `https://developer.android.com/reference/androidx/ink/geometry/Segment` intersects with a `https://developer.android.com/reference/androidx/ink/geometry/Box` --- when this segment has at least one point in common with the `https://developer.android.com/reference/androidx/ink/geometry/Box`'s interior, edges, or vertices |
| `static final boolean` | `https://developer.android.com/reference/androidx/ink/geometry/Intersection#(androidx.ink.geometry.Segment).intersects(androidx.ink.geometry.Segment)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/geometry/Segment receiver, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/geometry/Segment other)` Returns true when a `https://developer.android.com/reference/androidx/ink/geometry/Segment` intersects with another `https://developer.android.com/reference/androidx/ink/geometry/Segment` --- when this segment has at least one point (including the `https://developer.android.com/reference/androidx/ink/geometry/Segment#start()` and `https://developer.android.com/reference/androidx/ink/geometry/Segment#end()` points) in common with another `https://developer.android.com/reference/androidx/ink/geometry/Segment`. |
| `static final boolean` | `https://developer.android.com/reference/androidx/ink/geometry/Intersection#(androidx.ink.geometry.Segment).intersects(androidx.ink.geometry.Parallelogram)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/geometry/Segment receiver, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/geometry/Parallelogram parallelogram)` Returns true when a `https://developer.android.com/reference/androidx/ink/geometry/Segment` intersects with a `https://developer.android.com/reference/androidx/ink/geometry/Parallelogram` --- when this segment has at least one point in common with the `https://developer.android.com/reference/androidx/ink/geometry/Parallelogram`'s interior, edges, or vertices. |
| `static final boolean` | `https://developer.android.com/reference/androidx/ink/geometry/Intersection#(androidx.ink.geometry.Segment).intersects(androidx.ink.geometry.Vec)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/geometry/Segment receiver, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/geometry/Vec point)` Returns true when the `https://developer.android.com/reference/androidx/ink/geometry/Segment` intersects with a point (a `https://developer.android.com/reference/androidx/ink/geometry/Vec`). |
| `static final boolean` | `https://developer.android.com/reference/androidx/ink/geometry/Intersection#(androidx.ink.geometry.Segment).intersects(androidx.ink.geometry.Triangle)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/geometry/Segment receiver, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/geometry/Triangle triangle)` Returns true when a `https://developer.android.com/reference/androidx/ink/geometry/Segment` intersects with a `https://developer.android.com/reference/androidx/ink/geometry/Triangle` --- when this segment has at least one point in common with the `https://developer.android.com/reference/androidx/ink/geometry/Triangle`'s interior, edges, or vertices. |
| `static final boolean` | `https://developer.android.com/reference/androidx/ink/geometry/Intersection#(androidx.ink.geometry.Triangle).intersects(androidx.ink.geometry.Box)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/geometry/Triangle receiver, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/geometry/Box box)` Returns true when a `https://developer.android.com/reference/androidx/ink/geometry/Triangle` intersects with a `https://developer.android.com/reference/androidx/ink/geometry/Box` --- When this triangle has at least one point in common with the `https://developer.android.com/reference/androidx/ink/geometry/Box`'s interior, edges, or vertices. |
| `static final boolean` | `https://developer.android.com/reference/androidx/ink/geometry/Intersection#(androidx.ink.geometry.Triangle).intersects(androidx.ink.geometry.Triangle)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/geometry/Triangle receiver, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/geometry/Triangle other)` Returns true when a `https://developer.android.com/reference/androidx/ink/geometry/Triangle` intersects with `https://developer.android.com/reference/androidx/ink/geometry/Intersection#(androidx.ink.geometry.Triangle).intersects(androidx.ink.geometry.Triangle)` --- When this triangle has at least one point in common with `https://developer.android.com/reference/androidx/ink/geometry/Intersection#(androidx.ink.geometry.Triangle).intersects(androidx.ink.geometry.Triangle)`'s interior, edges, or vertices. |
| `static final boolean` | `https://developer.android.com/reference/androidx/ink/geometry/Intersection#(androidx.ink.geometry.Triangle).intersects(androidx.ink.geometry.Parallelogram)( @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/geometry/Triangle receiver, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/geometry/Parallelogram parallelogram )` Returns true when a `https://developer.android.com/reference/androidx/ink/geometry/Triangle` intersects with a `https://developer.android.com/reference/androidx/ink/geometry/Parallelogram` --- When this triangle has at least one point in common with the `https://developer.android.com/reference/androidx/ink/geometry/Parallelogram`'s interior, edges, or vertices. |
| `static final boolean` | `https://developer.android.com/reference/androidx/ink/geometry/Intersection#(androidx.ink.geometry.Triangle).intersects(androidx.ink.geometry.Vec)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/geometry/Triangle receiver, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/geometry/Vec point)` Returns true when the `https://developer.android.com/reference/androidx/ink/geometry/Triangle` intersects with a point (a `https://developer.android.com/reference/androidx/ink/geometry/Vec`). |
| `static final boolean` | `https://developer.android.com/reference/androidx/ink/geometry/Intersection#(androidx.ink.geometry.Triangle).intersects(androidx.ink.geometry.Segment)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/geometry/Triangle receiver, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/geometry/Segment segment)` Returns true when a `https://developer.android.com/reference/androidx/ink/geometry/Triangle` intersects with a `https://developer.android.com/reference/androidx/ink/geometry/Segment` --- when the `https://developer.android.com/reference/androidx/ink/geometry/Intersection#(androidx.ink.geometry.Triangle).intersects(androidx.ink.geometry.Segment)` has at least one point in common with the `https://developer.android.com/reference/androidx/ink/geometry/Triangle`'s interior, edges, or vertices. |
| `static final boolean` | `https://developer.android.com/reference/androidx/ink/geometry/Intersection#(androidx.ink.geometry.Vec).intersects(androidx.ink.geometry.Box)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/geometry/Vec receiver, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/geometry/Box box)` Returns true when the point (a `https://developer.android.com/reference/androidx/ink/geometry/Vec`) intersects with a `https://developer.android.com/reference/androidx/ink/geometry/Box`. |
| `static final boolean` | `https://developer.android.com/reference/androidx/ink/geometry/Intersection#(androidx.ink.geometry.Vec).intersects(androidx.ink.geometry.Vec)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/geometry/Vec receiver, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/geometry/Vec other)` Returns true if the point (a `https://developer.android.com/reference/androidx/ink/geometry/Vec`), intersects `https://developer.android.com/reference/androidx/ink/geometry/Intersection#(androidx.ink.geometry.Vec).intersects(androidx.ink.geometry.Vec)`; this only occurs when the two points are equal. |
| `static final boolean` | `https://developer.android.com/reference/androidx/ink/geometry/Intersection#(androidx.ink.geometry.Vec).intersects(androidx.ink.geometry.Parallelogram)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/geometry/Vec receiver, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/geometry/Parallelogram parallelogram)` Returns true when the point (a `https://developer.android.com/reference/androidx/ink/geometry/Vec`) intersects with a `https://developer.android.com/reference/androidx/ink/geometry/Parallelogram`. |
| `static final boolean` | `https://developer.android.com/reference/androidx/ink/geometry/Intersection#(androidx.ink.geometry.Vec).intersects(androidx.ink.geometry.Segment)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/geometry/Vec receiver, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/geometry/Segment segment)` Returns true when the point (a `https://developer.android.com/reference/androidx/ink/geometry/Vec`) intersects with a `https://developer.android.com/reference/androidx/ink/geometry/Segment`. |
| `static final boolean` | `https://developer.android.com/reference/androidx/ink/geometry/Intersection#(androidx.ink.geometry.Vec).intersects(androidx.ink.geometry.Triangle)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/geometry/Vec receiver, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/geometry/Triangle triangle)` Returns true when the point (a `https://developer.android.com/reference/androidx/ink/geometry/Vec`) intersects with a `https://developer.android.com/reference/androidx/ink/geometry/Triangle`. |
| `static final boolean` | `https://developer.android.com/reference/androidx/ink/geometry/Intersection#(androidx.ink.geometry.Box).intersects(androidx.ink.geometry.PartitionedMesh,androidx.ink.geometry.AffineTransform)( @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/geometry/Box receiver, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/geometry/PartitionedMesh mesh, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/geometry/AffineTransform meshToBox )` Returns true when a `https://developer.android.com/reference/androidx/ink/geometry/Box` intersects with a `https://developer.android.com/reference/androidx/ink/geometry/PartitionedMesh`. |
| `static final boolean` | `https://developer.android.com/reference/androidx/ink/geometry/Intersection#(androidx.ink.geometry.Box).intersects(kotlin.Float,kotlin.Float)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/geometry/Box receiver, float x, float y)` Returns true when the `https://developer.android.com/reference/androidx/ink/geometry/Box` intersects with a point (x, y). |
| `static final boolean` | `https://developer.android.com/reference/androidx/ink/geometry/Intersection#(androidx.ink.geometry.Parallelogram).intersects(androidx.ink.geometry.PartitionedMesh,androidx.ink.geometry.AffineTransform)( @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/geometry/Parallelogram receiver, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/geometry/PartitionedMesh mesh, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/geometry/AffineTransform meshToParallelogram )` RReturns true when a `https://developer.android.com/reference/androidx/ink/geometry/Parallelogram` intersects with a `https://developer.android.com/reference/androidx/ink/geometry/PartitionedMesh`. |
| `static final boolean` | `https://developer.android.com/reference/androidx/ink/geometry/Intersection#(androidx.ink.geometry.Parallelogram).intersects(kotlin.Float,kotlin.Float)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/geometry/Parallelogram receiver, float x, float y)` Returns true when the `https://developer.android.com/reference/androidx/ink/geometry/Parallelogram` intersects with a point (x, y). |
| `static final boolean` | `https://developer.android.com/reference/androidx/ink/geometry/Intersection#(androidx.ink.geometry.PartitionedMesh).intersects(androidx.ink.geometry.Box,androidx.ink.geometry.AffineTransform)( @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/geometry/PartitionedMesh receiver, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/geometry/Box box, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/geometry/AffineTransform meshToBox )` Returns true when a `https://developer.android.com/reference/androidx/ink/geometry/PartitionedMesh` intersects with a `https://developer.android.com/reference/androidx/ink/geometry/Box`. |
| `static final boolean` | `https://developer.android.com/reference/androidx/ink/geometry/Intersection#(androidx.ink.geometry.PartitionedMesh).intersects(androidx.ink.geometry.Parallelogram,androidx.ink.geometry.AffineTransform)( @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/geometry/PartitionedMesh receiver, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/geometry/Parallelogram parallelogram, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/geometry/AffineTransform meshToParallelogram )` Returns true when a `https://developer.android.com/reference/androidx/ink/geometry/PartitionedMesh` intersects with a `https://developer.android.com/reference/androidx/ink/geometry/Parallelogram`. |
| `static final boolean` | `https://developer.android.com/reference/androidx/ink/geometry/Intersection#(androidx.ink.geometry.PartitionedMesh).intersects(androidx.ink.geometry.Vec,androidx.ink.geometry.AffineTransform)( @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/geometry/PartitionedMesh receiver, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/geometry/Vec point, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/geometry/AffineTransform meshToPoint )` Returns true when the `https://developer.android.com/reference/androidx/ink/geometry/PartitionedMesh` intersects with `https://developer.android.com/reference/androidx/ink/geometry/Intersection#(androidx.ink.geometry.PartitionedMesh).intersects(androidx.ink.geometry.Vec,androidx.ink.geometry.AffineTransform)`. |
| `static final boolean` | `https://developer.android.com/reference/androidx/ink/geometry/Intersection#(androidx.ink.geometry.PartitionedMesh).intersects(androidx.ink.geometry.Segment,androidx.ink.geometry.AffineTransform)( @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/geometry/PartitionedMesh receiver, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/geometry/Segment segment, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/geometry/AffineTransform meshToSegment )` Returns true when a `https://developer.android.com/reference/androidx/ink/geometry/PartitionedMesh` intersects with a `https://developer.android.com/reference/androidx/ink/geometry/Segment`. |
| `static final boolean` | `https://developer.android.com/reference/androidx/ink/geometry/Intersection#(androidx.ink.geometry.PartitionedMesh).intersects(androidx.ink.geometry.Triangle,androidx.ink.geometry.AffineTransform)( @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/geometry/PartitionedMesh receiver, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/geometry/Triangle triangle, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/geometry/AffineTransform meshToTriangle )` Returns true when a `https://developer.android.com/reference/androidx/ink/geometry/PartitionedMesh` intersects with a `https://developer.android.com/reference/androidx/ink/geometry/Triangle`. |
| `static final boolean` | `https://developer.android.com/reference/androidx/ink/geometry/Intersection#(androidx.ink.geometry.Segment).intersects(androidx.ink.geometry.PartitionedMesh,androidx.ink.geometry.AffineTransform)( @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/geometry/Segment receiver, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/geometry/PartitionedMesh mesh, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/geometry/AffineTransform meshToSegment )` Returns true when a `https://developer.android.com/reference/androidx/ink/geometry/Segment` intersects with a `https://developer.android.com/reference/androidx/ink/geometry/PartitionedMesh`. |
| `static final boolean` | `https://developer.android.com/reference/androidx/ink/geometry/Intersection#(androidx.ink.geometry.Segment).intersects(kotlin.Float,kotlin.Float)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/geometry/Segment receiver, float x, float y)` Returns true when the `https://developer.android.com/reference/androidx/ink/geometry/Segment` intersects with a point (x, y). |
| `static final boolean` | `https://developer.android.com/reference/androidx/ink/geometry/Intersection#(androidx.ink.geometry.Triangle).intersects(androidx.ink.geometry.PartitionedMesh,androidx.ink.geometry.AffineTransform)( @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/geometry/Triangle receiver, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/geometry/PartitionedMesh mesh, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/geometry/AffineTransform meshToTriangle )` Returns true when a `https://developer.android.com/reference/androidx/ink/geometry/Triangle` intersects with a `https://developer.android.com/reference/androidx/ink/geometry/PartitionedMesh`. |
| `static final boolean` | `https://developer.android.com/reference/androidx/ink/geometry/Intersection#(androidx.ink.geometry.Triangle).intersects(kotlin.Float,kotlin.Float)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/geometry/Triangle receiver, float x, float y)` Returns true when the `https://developer.android.com/reference/androidx/ink/geometry/Triangle` intersects with a point (x, y). |
| `static final boolean` | `https://developer.android.com/reference/androidx/ink/geometry/Intersection#(androidx.ink.geometry.Vec).intersects(androidx.ink.geometry.PartitionedMesh,androidx.ink.geometry.AffineTransform)( @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/geometry/Vec receiver, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/geometry/PartitionedMesh mesh, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/geometry/AffineTransform meshToPoint )` Returns true when the point (a `https://developer.android.com/reference/androidx/ink/geometry/Vec`) intersects with `https://developer.android.com/reference/androidx/ink/geometry/Intersection#(androidx.ink.geometry.Vec).intersects(androidx.ink.geometry.PartitionedMesh,androidx.ink.geometry.AffineTransform)`. |
| `static final boolean` | `https://developer.android.com/reference/androidx/ink/geometry/Intersection#(androidx.ink.geometry.PartitionedMesh).intersects(androidx.ink.geometry.PartitionedMesh,androidx.ink.geometry.AffineTransform,androidx.ink.geometry.AffineTransform)( @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/geometry/PartitionedMesh receiver, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/geometry/PartitionedMesh other, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/geometry/AffineTransform thisToCommonTransform, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/geometry/AffineTransform otherToCommonTransform )` Returns true when a `https://developer.android.com/reference/androidx/ink/geometry/PartitionedMesh` intersects with a `https://developer.android.com/reference/androidx/ink/geometry/PartitionedMesh`. |
| `static final boolean` | `https://developer.android.com/reference/androidx/ink/geometry/Intersection#(androidx.ink.geometry.PartitionedMesh).intersects(kotlin.Float,kotlin.Float,androidx.ink.geometry.AffineTransform)( @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/geometry/PartitionedMesh receiver, float x, float y, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/geometry/AffineTransform meshToPoint )` Returns true when the `https://developer.android.com/reference/androidx/ink/geometry/PartitionedMesh` intersects with the point (x, y). |

## Public fields

### INSTANCE

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/ink#1.0.0)

```
public static @NonNull Intersection INSTANCE
```

## Public methods

### intersects

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/ink#1.0.0)

```
public static final boolean intersects(@NonNull Box receiver, @NonNull Box other)
```

Returns true when a `https://developer.android.com/reference/androidx/ink/geometry/Box` intersects with `https://developer.android.com/reference/androidx/ink/geometry/Intersection#(androidx.ink.geometry.Box).intersects(androidx.ink.geometry.Box)` --- When it has at least one point in common with `https://developer.android.com/reference/androidx/ink/geometry/Intersection#(androidx.ink.geometry.Box).intersects(androidx.ink.geometry.Box)`'s interior, edges, or vertices.

### intersects

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/ink#1.0.0)

```
public static final boolean intersects(@NonNull Box receiver, @NonNull Parallelogram parallelogram)
```

Returns true when a `https://developer.android.com/reference/androidx/ink/geometry/Box` intersects with a `https://developer.android.com/reference/androidx/ink/geometry/Parallelogram` --- When it has at least one point in common with the `https://developer.android.com/reference/androidx/ink/geometry/Parallelogram`'s interior, edges, or vertices.

### intersects

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/ink#1.0.0)

```
public static final boolean intersects(@NonNull Box receiver, @NonNull Vec point)
```

Returns true when the `https://developer.android.com/reference/androidx/ink/geometry/Box` intersects with a point (a `https://developer.android.com/reference/androidx/ink/geometry/Vec`). All points on the boundary of the box (including its vertices) and in the interior of the box intersect with it.

### intersects

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/ink#1.0.0)

```
public static final boolean intersects(@NonNull Box receiver, @NonNull Segment segment)
```

Returns true when a `https://developer.android.com/reference/androidx/ink/geometry/Box` intersects with a `https://developer.android.com/reference/androidx/ink/geometry/Segment` --- when the `https://developer.android.com/reference/androidx/ink/geometry/Intersection#(androidx.ink.geometry.Box).intersects(androidx.ink.geometry.Segment)` has at least one point in common with the `https://developer.android.com/reference/androidx/ink/geometry/Box`'s interior, edges, or vertices

### intersects

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/ink#1.0.0)

```
public static final boolean intersects(@NonNull Box receiver, @NonNull Triangle triangle)
```

Returns true when a `https://developer.android.com/reference/androidx/ink/geometry/Box` intersects with a `https://developer.android.com/reference/androidx/ink/geometry/Triangle` --- When the `https://developer.android.com/reference/androidx/ink/geometry/Intersection#(androidx.ink.geometry.Box).intersects(androidx.ink.geometry.Triangle)` has at least one point in common with the `https://developer.android.com/reference/androidx/ink/geometry/Box`'s interior, edges, or vertices.

### intersects

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/ink#1.0.0)

```
public static final boolean intersects(@NonNull Parallelogram receiver, @NonNull Box box)
```

Returns true when a `https://developer.android.com/reference/androidx/ink/geometry/Parallelogram` intersects with a `https://developer.android.com/reference/androidx/ink/geometry/Box` --- When the `https://developer.android.com/reference/androidx/ink/geometry/Intersection#(androidx.ink.geometry.Parallelogram).intersects(androidx.ink.geometry.Box)` has at least one point in common with the `https://developer.android.com/reference/androidx/ink/geometry/Parallelogram`'s interior, edges, or vertices.

### intersects

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/ink#1.0.0)

```
public static final boolean intersects(@NonNull Parallelogram receiver, @NonNull Parallelogram other)
```

Returns true when a `https://developer.android.com/reference/androidx/ink/geometry/Parallelogram` intersects with `https://developer.android.com/reference/androidx/ink/geometry/Intersection#(androidx.ink.geometry.Parallelogram).intersects(androidx.ink.geometry.Parallelogram)` --- When it has at least one point in common with `https://developer.android.com/reference/androidx/ink/geometry/Intersection#(androidx.ink.geometry.Parallelogram).intersects(androidx.ink.geometry.Parallelogram)`'s interior, edges, or vertices.

### intersects

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/ink#1.0.0)

```
public static final boolean intersects(@NonNull Parallelogram receiver, @NonNull Vec point)
```

Returns true when the `https://developer.android.com/reference/androidx/ink/geometry/Parallelogram` intersects with a point (a `https://developer.android.com/reference/androidx/ink/geometry/Vec`). All points on the boundary of the parallelogram (including its vertices) and in the interior of the parallelogram intersect with it.

### intersects

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/ink#1.0.0)

```
public static final boolean intersects(@NonNull Parallelogram receiver, @NonNull Segment segment)
```

Returns true when a `https://developer.android.com/reference/androidx/ink/geometry/Parallelogram` intersects with a `https://developer.android.com/reference/androidx/ink/geometry/Segment` --- when the `https://developer.android.com/reference/androidx/ink/geometry/Intersection#(androidx.ink.geometry.Parallelogram).intersects(androidx.ink.geometry.Segment)` has at least one point in common with the `https://developer.android.com/reference/androidx/ink/geometry/Parallelogram`'s interior, edges, or vertices.

### intersects

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/ink#1.0.0)

```
public static final boolean intersects(@NonNull Parallelogram receiver, @NonNull Triangle triangle)
```

Returns true when a `https://developer.android.com/reference/androidx/ink/geometry/Parallelogram` intersects with a `https://developer.android.com/reference/androidx/ink/geometry/Triangle` --- When the `https://developer.android.com/reference/androidx/ink/geometry/Intersection#(androidx.ink.geometry.Parallelogram).intersects(androidx.ink.geometry.Triangle)` has at least one point in common with the `https://developer.android.com/reference/androidx/ink/geometry/Parallelogram`'s interior, edges, or vertices.

### intersects

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/ink#1.0.0)

```
public static final boolean intersects(@NonNull Segment receiver, @NonNull Box box)
```

Returns true when a `https://developer.android.com/reference/androidx/ink/geometry/Segment` intersects with a `https://developer.android.com/reference/androidx/ink/geometry/Box` --- when this segment has at least one point in common with the `https://developer.android.com/reference/androidx/ink/geometry/Box`'s interior, edges, or vertices

### intersects

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/ink#1.0.0)

```
public static final boolean intersects(@NonNull Segment receiver, @NonNull Segment other)
```

Returns true when a `https://developer.android.com/reference/androidx/ink/geometry/Segment` intersects with another `https://developer.android.com/reference/androidx/ink/geometry/Segment` --- when this segment has at least one point (including the `https://developer.android.com/reference/androidx/ink/geometry/Segment#start()` and `https://developer.android.com/reference/androidx/ink/geometry/Segment#end()` points) in common with another `https://developer.android.com/reference/androidx/ink/geometry/Segment`.

### intersects

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/ink#1.0.0)

```
public static final boolean intersects(@NonNull Segment receiver, @NonNull Parallelogram parallelogram)
```

Returns true when a `https://developer.android.com/reference/androidx/ink/geometry/Segment` intersects with a `https://developer.android.com/reference/androidx/ink/geometry/Parallelogram` --- when this segment has at least one point in common with the `https://developer.android.com/reference/androidx/ink/geometry/Parallelogram`'s interior, edges, or vertices.

### intersects

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/ink#1.0.0)

```
public static final boolean intersects(@NonNull Segment receiver, @NonNull Vec point)
```

Returns true when the `https://developer.android.com/reference/androidx/ink/geometry/Segment` intersects with a point (a `https://developer.android.com/reference/androidx/ink/geometry/Vec`). All points on the segment, including endpoints, intersect with the segment.

### intersects

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/ink#1.0.0)

```
public static final boolean intersects(@NonNull Segment receiver, @NonNull Triangle triangle)
```

Returns true when a `https://developer.android.com/reference/androidx/ink/geometry/Segment` intersects with a `https://developer.android.com/reference/androidx/ink/geometry/Triangle` --- when this segment has at least one point in common with the `https://developer.android.com/reference/androidx/ink/geometry/Triangle`'s interior, edges, or vertices.

### intersects

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/ink#1.0.0)

```
public static final boolean intersects(@NonNull Triangle receiver, @NonNull Box box)
```

Returns true when a `https://developer.android.com/reference/androidx/ink/geometry/Triangle` intersects with a `https://developer.android.com/reference/androidx/ink/geometry/Box` --- When this triangle has at least one point in common with the `https://developer.android.com/reference/androidx/ink/geometry/Box`'s interior, edges, or vertices.

### intersects

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/ink#1.0.0)

```
public static final boolean intersects(@NonNull Triangle receiver, @NonNull Triangle other)
```

Returns true when a `https://developer.android.com/reference/androidx/ink/geometry/Triangle` intersects with `https://developer.android.com/reference/androidx/ink/geometry/Intersection#(androidx.ink.geometry.Triangle).intersects(androidx.ink.geometry.Triangle)` --- When this triangle has at least one point in common with `https://developer.android.com/reference/androidx/ink/geometry/Intersection#(androidx.ink.geometry.Triangle).intersects(androidx.ink.geometry.Triangle)`'s interior, edges, or vertices.

### intersects

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/ink#1.0.0)

```
public static final boolean intersects(
    @NonNull Triangle receiver,
    @NonNull Parallelogram parallelogram
)
```

Returns true when a `https://developer.android.com/reference/androidx/ink/geometry/Triangle` intersects with a `https://developer.android.com/reference/androidx/ink/geometry/Parallelogram` --- When this triangle has at least one point in common with the `https://developer.android.com/reference/androidx/ink/geometry/Parallelogram`'s interior, edges, or vertices.

### intersects

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/ink#1.0.0)

```
public static final boolean intersects(@NonNull Triangle receiver, @NonNull Vec point)
```

Returns true when the `https://developer.android.com/reference/androidx/ink/geometry/Triangle` intersects with a point (a `https://developer.android.com/reference/androidx/ink/geometry/Vec`). All points on the boundary of the triangle (including its vertices) and in the interior of the triangle intersect with it.

### intersects

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/ink#1.0.0)

```
public static final boolean intersects(@NonNull Triangle receiver, @NonNull Segment segment)
```

Returns true when a `https://developer.android.com/reference/androidx/ink/geometry/Triangle` intersects with a `https://developer.android.com/reference/androidx/ink/geometry/Segment` --- when the `https://developer.android.com/reference/androidx/ink/geometry/Intersection#(androidx.ink.geometry.Triangle).intersects(androidx.ink.geometry.Segment)` has at least one point in common with the `https://developer.android.com/reference/androidx/ink/geometry/Triangle`'s interior, edges, or vertices.

### intersects

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/ink#1.0.0)

```
public static final boolean intersects(@NonNull Vec receiver, @NonNull Box box)
```

Returns true when the point (a `https://developer.android.com/reference/androidx/ink/geometry/Vec`) intersects with a `https://developer.android.com/reference/androidx/ink/geometry/Box`. All points on the boundary of the box (including its vertices) and in the interior of the box intersect with it.

### intersects

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/ink#1.0.0)

```
public static final boolean intersects(@NonNull Vec receiver, @NonNull Vec other)
```

Returns true if the point (a `https://developer.android.com/reference/androidx/ink/geometry/Vec`), intersects `https://developer.android.com/reference/androidx/ink/geometry/Intersection#(androidx.ink.geometry.Vec).intersects(androidx.ink.geometry.Vec)`; this only occurs when the two points are equal.

### intersects

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/ink#1.0.0)

```
public static final boolean intersects(@NonNull Vec receiver, @NonNull Parallelogram parallelogram)
```

Returns true when the point (a `https://developer.android.com/reference/androidx/ink/geometry/Vec`) intersects with a `https://developer.android.com/reference/androidx/ink/geometry/Parallelogram`. All points on the boundary of the parallelogram (including its vertices) and in the interior of the parallelogram intersect with it.

### intersects

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/ink#1.0.0)

```
public static final boolean intersects(@NonNull Vec receiver, @NonNull Segment segment)
```

Returns true when the point (a `https://developer.android.com/reference/androidx/ink/geometry/Vec`) intersects with a `https://developer.android.com/reference/androidx/ink/geometry/Segment`. All points on the segment, including endpoints, intersect with the segment.

### intersects

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/ink#1.0.0)

```
public static final boolean intersects(@NonNull Vec receiver, @NonNull Triangle triangle)
```

Returns true when the point (a `https://developer.android.com/reference/androidx/ink/geometry/Vec`) intersects with a `https://developer.android.com/reference/androidx/ink/geometry/Triangle`. All points on the boundary of the triangle (including its vertices) and in the interior of the triangle intersect with it.

### intersects

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/ink#1.0.0)

```
public static final boolean intersects(
    @NonNull Box receiver,
    @NonNull PartitionedMesh mesh,
    @NonNull AffineTransform meshToBox
)
```

Returns true when a `https://developer.android.com/reference/androidx/ink/geometry/Box` intersects with a `https://developer.android.com/reference/androidx/ink/geometry/PartitionedMesh`.

Note that, because it is expensive to apply a transform to a mesh, this method takes a `https://developer.android.com/reference/androidx/ink/geometry/Intersection#(androidx.ink.geometry.Box).intersects(androidx.ink.geometry.PartitionedMesh,androidx.ink.geometry.AffineTransform)` transform as an argument. This transform maps from the `https://developer.android.com/reference/androidx/ink/geometry/PartitionedMesh`'s coordinate space to the coordinate space that the intersection should be checked in.

### intersects

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/ink#1.0.0)

```
public static final boolean intersects(@NonNull Box receiver, float x, float y)
```

Returns true when the `https://developer.android.com/reference/androidx/ink/geometry/Box` intersects with a point (x, y). All points on the boundary of the box (including its vertices) and in the interior of the box intersect with it.

### intersects

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/ink#1.0.0)

```
public static final boolean intersects(
    @NonNull Parallelogram receiver,
    @NonNull PartitionedMesh mesh,
    @NonNull AffineTransform meshToParallelogram
)
```

RReturns true when a `https://developer.android.com/reference/androidx/ink/geometry/Parallelogram` intersects with a `https://developer.android.com/reference/androidx/ink/geometry/PartitionedMesh`.

Note that, because it is expensive to apply a transform to a mesh, this method takes a `https://developer.android.com/reference/androidx/ink/geometry/Intersection#(androidx.ink.geometry.Parallelogram).intersects(androidx.ink.geometry.PartitionedMesh,androidx.ink.geometry.AffineTransform)` transform as an argument. This transform maps from the `https://developer.android.com/reference/androidx/ink/geometry/PartitionedMesh`'s coordinate space to the coordinate space that the intersection should be checked in.

### intersects

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/ink#1.0.0)

```
public static final boolean intersects(@NonNull Parallelogram receiver, float x, float y)
```

Returns true when the `https://developer.android.com/reference/androidx/ink/geometry/Parallelogram` intersects with a point (x, y). All points on the boundary of the parallelogram (including its vertices) and in the interior of the parallelogram intersect with it.

### intersects

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/ink#1.0.0)

```
public static final boolean intersects(
    @NonNull PartitionedMesh receiver,
    @NonNull Box box,
    @NonNull AffineTransform meshToBox
)
```

Returns true when a `https://developer.android.com/reference/androidx/ink/geometry/PartitionedMesh` intersects with a `https://developer.android.com/reference/androidx/ink/geometry/Box`.

Note that, because it is expensive to apply a transform to a mesh, this method takes a `https://developer.android.com/reference/androidx/ink/geometry/Intersection#(androidx.ink.geometry.PartitionedMesh).intersects(androidx.ink.geometry.Box,androidx.ink.geometry.AffineTransform)` transform as an argument. This transform maps from the `https://developer.android.com/reference/androidx/ink/geometry/PartitionedMesh`'s coordinate space to the coordinate space that the intersection should be checked in.

### intersects

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/ink#1.0.0)

```
public static final boolean intersects(
    @NonNull PartitionedMesh receiver,
    @NonNull Parallelogram parallelogram,
    @NonNull AffineTransform meshToParallelogram
)
```

Returns true when a `https://developer.android.com/reference/androidx/ink/geometry/PartitionedMesh` intersects with a `https://developer.android.com/reference/androidx/ink/geometry/Parallelogram`.

Note that, because it is expensive to apply a transform to a mesh, this method takes a `https://developer.android.com/reference/androidx/ink/geometry/Intersection#(androidx.ink.geometry.PartitionedMesh).intersects(androidx.ink.geometry.Parallelogram,androidx.ink.geometry.AffineTransform)` transform as an argument. This transform maps from the `https://developer.android.com/reference/androidx/ink/geometry/PartitionedMesh`'s coordinate space to the coordinate space that the intersection should be checked in.

### intersects

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/ink#1.0.0)

```
public static final boolean intersects(
    @NonNull PartitionedMesh receiver,
    @NonNull Vec point,
    @NonNull AffineTransform meshToPoint
)
```

Returns true when the `https://developer.android.com/reference/androidx/ink/geometry/PartitionedMesh` intersects with `https://developer.android.com/reference/androidx/ink/geometry/Intersection#(androidx.ink.geometry.PartitionedMesh).intersects(androidx.ink.geometry.Vec,androidx.ink.geometry.AffineTransform)`. `https://developer.android.com/reference/androidx/ink/geometry/Intersection#(androidx.ink.geometry.PartitionedMesh).intersects(androidx.ink.geometry.Vec,androidx.ink.geometry.AffineTransform)` transforms the coordinate space of the mesh to the coordinate space that the intersection should be checked in (that of the `https://developer.android.com/reference/androidx/ink/geometry/Intersection#(androidx.ink.geometry.PartitionedMesh).intersects(androidx.ink.geometry.Vec,androidx.ink.geometry.AffineTransform)`). All points along the boundary of the mesh and the mesh's interior are considered for intersection.

Performance note: it is expensive to apply a transform to a mesh. To avoid unnecessary calculations, the inverse of `https://developer.android.com/reference/androidx/ink/geometry/Intersection#(androidx.ink.geometry.PartitionedMesh).intersects(androidx.ink.geometry.Vec,androidx.ink.geometry.AffineTransform)` is used to perform the mathematically equivalent intersection of the point in mesh's object coordinates.

### intersects

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/ink#1.0.0)

```
public static final boolean intersects(
    @NonNull PartitionedMesh receiver,
    @NonNull Segment segment,
    @NonNull AffineTransform meshToSegment
)
```

Returns true when a `https://developer.android.com/reference/androidx/ink/geometry/PartitionedMesh` intersects with a `https://developer.android.com/reference/androidx/ink/geometry/Segment`.

Note that, because it is expensive to apply a transform to a mesh, this method takes a `https://developer.android.com/reference/androidx/ink/geometry/Intersection#(androidx.ink.geometry.PartitionedMesh).intersects(androidx.ink.geometry.Segment,androidx.ink.geometry.AffineTransform)` transform as an argument. This transform maps from the `https://developer.android.com/reference/androidx/ink/geometry/PartitionedMesh`'s coordinate space to the coordinate space that the intersection should be checked in.

### intersects

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/ink#1.0.0)

```
public static final boolean intersects(
    @NonNull PartitionedMesh receiver,
    @NonNull Triangle triangle,
    @NonNull AffineTransform meshToTriangle
)
```

Returns true when a `https://developer.android.com/reference/androidx/ink/geometry/PartitionedMesh` intersects with a `https://developer.android.com/reference/androidx/ink/geometry/Triangle`.

Note that, because it is expensive to apply a transform to a mesh, this method takes a `https://developer.android.com/reference/androidx/ink/geometry/Intersection#(androidx.ink.geometry.PartitionedMesh).intersects(androidx.ink.geometry.Triangle,androidx.ink.geometry.AffineTransform)` transform as an argument. This transform maps from the `https://developer.android.com/reference/androidx/ink/geometry/PartitionedMesh`'s coordinate space to the coordinate space that the intersection should be checked in.

### intersects

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/ink#1.0.0)

```
public static final boolean intersects(
    @NonNull Segment receiver,
    @NonNull PartitionedMesh mesh,
    @NonNull AffineTransform meshToSegment
)
```

Returns true when a `https://developer.android.com/reference/androidx/ink/geometry/Segment` intersects with a `https://developer.android.com/reference/androidx/ink/geometry/PartitionedMesh`.

Note that, because it is expensive to apply a transform to a mesh, this method takes a `https://developer.android.com/reference/androidx/ink/geometry/Intersection#(androidx.ink.geometry.Segment).intersects(androidx.ink.geometry.PartitionedMesh,androidx.ink.geometry.AffineTransform)` transform as an argument. This transform maps from the `https://developer.android.com/reference/androidx/ink/geometry/PartitionedMesh`'s coordinate space to the coordinate space that the intersection should be checked in.

### intersects

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/ink#1.0.0)

```
public static final boolean intersects(@NonNull Segment receiver, float x, float y)
```

Returns true when the `https://developer.android.com/reference/androidx/ink/geometry/Segment` intersects with a point (x, y). All points on the segment, including endpoints, intersect with the segment.

### intersects

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/ink#1.0.0)

```
public static final boolean intersects(
    @NonNull Triangle receiver,
    @NonNull PartitionedMesh mesh,
    @NonNull AffineTransform meshToTriangle
)
```

Returns true when a `https://developer.android.com/reference/androidx/ink/geometry/Triangle` intersects with a `https://developer.android.com/reference/androidx/ink/geometry/PartitionedMesh`.

Note that, because it is expensive to apply a transform to a mesh, this method takes a `https://developer.android.com/reference/androidx/ink/geometry/Intersection#(androidx.ink.geometry.Triangle).intersects(androidx.ink.geometry.PartitionedMesh,androidx.ink.geometry.AffineTransform)` transform as an argument. This transform maps from the `https://developer.android.com/reference/androidx/ink/geometry/PartitionedMesh`'s coordinate space to the coordinate space that the intersection should be checked in.

### intersects

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/ink#1.0.0)

```
public static final boolean intersects(@NonNull Triangle receiver, float x, float y)
```

Returns true when the `https://developer.android.com/reference/androidx/ink/geometry/Triangle` intersects with a point (x, y). All points on the boundary of the triangle (including its vertices) and in the interior of the triangle intersect with it.

### intersects

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/ink#1.0.0)

```
public static final boolean intersects(
    @NonNull Vec receiver,
    @NonNull PartitionedMesh mesh,
    @NonNull AffineTransform meshToPoint
)
```

Returns true when the point (a `https://developer.android.com/reference/androidx/ink/geometry/Vec`) intersects with `https://developer.android.com/reference/androidx/ink/geometry/Intersection#(androidx.ink.geometry.Vec).intersects(androidx.ink.geometry.PartitionedMesh,androidx.ink.geometry.AffineTransform)`. `https://developer.android.com/reference/androidx/ink/geometry/Intersection#(androidx.ink.geometry.Vec).intersects(androidx.ink.geometry.PartitionedMesh,androidx.ink.geometry.AffineTransform)` transforms the coordinate space of `https://developer.android.com/reference/androidx/ink/geometry/Intersection#(androidx.ink.geometry.Vec).intersects(androidx.ink.geometry.PartitionedMesh,androidx.ink.geometry.AffineTransform)` to the coordinate space that the intersection should be checked in (that of the point). All points along the boundary of the `https://developer.android.com/reference/androidx/ink/geometry/Intersection#(androidx.ink.geometry.Vec).intersects(androidx.ink.geometry.PartitionedMesh,androidx.ink.geometry.AffineTransform)` and the `https://developer.android.com/reference/androidx/ink/geometry/Intersection#(androidx.ink.geometry.Vec).intersects(androidx.ink.geometry.PartitionedMesh,androidx.ink.geometry.AffineTransform)`s interior are considered for intersection.

Performance note: it is expensive to apply a transform to a mesh. To avoid unnecessary calculations, the inverse of `https://developer.android.com/reference/androidx/ink/geometry/Intersection#(androidx.ink.geometry.Vec).intersects(androidx.ink.geometry.PartitionedMesh,androidx.ink.geometry.AffineTransform)` is used to perform the mathematically equivalent intersection of the point in `https://developer.android.com/reference/androidx/ink/geometry/Intersection#(androidx.ink.geometry.Vec).intersects(androidx.ink.geometry.PartitionedMesh,androidx.ink.geometry.AffineTransform)`'s object coordinates.

### intersects

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/ink#1.0.0)

```
public static final boolean intersects(
    @NonNull PartitionedMesh receiver,
    @NonNull PartitionedMesh other,
    @NonNull AffineTransform thisToCommonTransform,
    @NonNull AffineTransform otherToCommonTransform
)
```

Returns true when a `https://developer.android.com/reference/androidx/ink/geometry/PartitionedMesh` intersects with a `https://developer.android.com/reference/androidx/ink/geometry/PartitionedMesh`.

Note that, because it is expensive to apply a transform to a mesh, this method takes two `https://developer.android.com/reference/androidx/ink/geometry/AffineTransform` objects: `https://developer.android.com/reference/androidx/ink/geometry/Intersection#(androidx.ink.geometry.PartitionedMesh).intersects(androidx.ink.geometry.PartitionedMesh,androidx.ink.geometry.AffineTransform,androidx.ink.geometry.AffineTransform)` and `https://developer.android.com/reference/androidx/ink/geometry/Intersection#(androidx.ink.geometry.PartitionedMesh).intersects(androidx.ink.geometry.PartitionedMesh,androidx.ink.geometry.AffineTransform,androidx.ink.geometry.AffineTransform)`. These transforms map from the respective `https://developer.android.com/reference/androidx/ink/geometry/PartitionedMesh`s' coordinate spaces to the common coordinate space that the intersection should be checked in.

### intersects

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/ink#1.0.0)

```
public static final boolean intersects(
    @NonNull PartitionedMesh receiver,
    float x,
    float y,
    @NonNull AffineTransform meshToPoint
)
```

Returns true when the `https://developer.android.com/reference/androidx/ink/geometry/PartitionedMesh` intersects with the point (x, y). `https://developer.android.com/reference/androidx/ink/geometry/Intersection#(androidx.ink.geometry.PartitionedMesh).intersects(kotlin.Float,kotlin.Float,androidx.ink.geometry.AffineTransform)` transforms the coordinate space of the mesh to the coordinate space that the intersection should be checked in (that of the point). All points along the boundary of the mesh and the mesh's interior are considered for intersection.

Performance note: it is expensive to apply a transform to a mesh. To avoid unnecessary calculations, the inverse of `https://developer.android.com/reference/androidx/ink/geometry/Intersection#(androidx.ink.geometry.PartitionedMesh).intersects(kotlin.Float,kotlin.Float,androidx.ink.geometry.AffineTransform)` is used to perform the mathematically equivalent intersection of the point in mesh's object coordinates.