Point

open external class Point(x: Number, y: Number, round: Boolean? = definedExternally)

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: Number, y: Number, round: Boolean? = definedExternally)

Properties

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

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): Number
Link copied to clipboard
fun divideBy(num: Number): 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