library / com.otaliastudios.opengl.geometry / IndexedSegmentF

IndexedSegmentF

class IndexedSegmentF : SegmentF

Constructors

<init>

IndexedSegmentF(i: IndexedPointF, j: IndexedPointF)
IndexedSegmentF(i: Int, j: Int, ix: Float, iy: Float, jx: Float, jy: Float)

Properties

i

val i: Int

j

val j: Int

Functions

hasIndex

fun hasIndex(index: Int): Boolean

intersects

Not an easy task. Some references: https://github.com/locationtech/jts/blob/master/modules/core/src/main/java/org/locationtech/jts/algorithm/RobustLineIntersector.java https://stackoverflow.com/questions/3838329/how-can-i-check-if-two-segments-intersect

fun intersects(other: SegmentF): Boolean