DistanceBitmap

class DistanceBitmap(val width: Int, val height: Int, val d: FloatArray = FloatArray(width * height), val px: IntArray = IntArray(width * height), val py: IntArray = IntArray(width * height))

Constructors

Link copied to clipboard
constructor(width: Int, height: Int, d: FloatArray = FloatArray(width * height), px: IntArray = IntArray(width * height), py: IntArray = IntArray(width * height))

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val area: Int
Link copied to clipboard
Link copied to clipboard
val height: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val width: Int

Functions

Link copied to clipboard
fun getDist(x: Int, y: Int): Float
Link copied to clipboard
fun getPosX(x: Int, y: Int): Int
Link copied to clipboard
fun getPosY(x: Int, y: Int): Int
Link copied to clipboard
fun getRPosX(x: Int, y: Int): Int
Link copied to clipboard
fun getRPosY(x: Int, y: Int): Int
Link copied to clipboard
fun inBounds(x: Int, y: Int): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun index(x: Int, y: Int): Int
Link copied to clipboard
fun setDist(x: Int, y: Int, d: Float)
Link copied to clipboard
fun setFromBitmap(bmp: Bitmap, thresold: Double = 0.5)
Link copied to clipboard
fun setPosRXY(x: Int, y: Int, dx: Int, dy: Int)
Link copied to clipboard
fun setPosXY(x: Int, y: Int, px: Int, py: Int)
Link copied to clipboard
fun setPosXYRel(x: Int, y: Int, px: Int, py: Int)
Link copied to clipboard