XYLine

Represents a line in cartesian space. You can construct the Line directly with float[], float[] x, y arrays coordinates.

Constructors

Link copied to clipboard
constructor(x: FloatArray, y: FloatArray)

Properties

Link copied to clipboard
val maxX: Float

maximum y of this line's bounding box

Link copied to clipboard
val maxY: Float

maximum y of this line's bounding box

Link copied to clipboard
val minX: Float

minimum x of this line's bounding box

Link copied to clipboard
val minY: Float

minimum y of this line's bounding box

Functions

Link copied to clipboard
open operator override fun equals(o: Any?): Boolean
Link copied to clipboard

Returns a copy of the internal x array

fun getX(vertex: Int): Float

Returns x value at given index

Link copied to clipboard

Returns a copy of the internal y array

fun getY(vertex: Int): Float

Returns y value at given index

Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
fun numPoints(): Int

returns the number of vertex points

Link copied to clipboard
open override fun toString(): String