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