Constructors
constructor
new Point(x: number, y: number, round?: boolean): Point Parameters
- x: number
- y: number
Optional
round: boolean
Properties
x
x: number
y
y: number
Methods
add
ceil
clone
contains
Returns boolean
distanceTo
Returns number
divideBy
divideBy(num: number): Point
equals
Returns boolean
floor
multiplyBy
multiplyBy(num: number): Point
round
scaleBy
subtract
toString
Returns string
trunc
unscaleBy