Point

open class Point(x: Double, y: Double, round: Boolean? = definedExternally) : JsAny(source)

Represents a point with x and y coordinates in pixels.

https://leafletjs.com/SlavaUkraini/reference.html#point

Inheritors

Constructors

Link copied to clipboard
constructor(x: Double, y: Double, round: Boolean? = definedExternally)

Properties

Link copied to clipboard
var x: Double
Link copied to clipboard
var y: Double

Functions

Link copied to clipboard
fun add(otherPoint: Point): Point

non-destructive, returns a new point

Link copied to clipboard
fun ceil(): Point
Link copied to clipboard
fun clone(): Point
Link copied to clipboard
fun contains(otherPoint: Point): Boolean
Link copied to clipboard
fun distanceTo(otherPoint: Point): Double
Link copied to clipboard
fun divideBy(num: Double): Point
Link copied to clipboard
fun equals(otherPoint: Point): Boolean
Link copied to clipboard
fun floor(): Point
Link copied to clipboard
Link copied to clipboard
fun round(): Point
Link copied to clipboard
fun scaleBy(scale: Point): Point
Link copied to clipboard
fun subtract(otherPoint: Point): Point
Link copied to clipboard
fun trunc(): Point
Link copied to clipboard
fun unscaleBy(scale: Point): Point