Search
⌃K
Links

Point

Hierarchy

  • Point

Index

Constructors

Properties

  • x
  • y

Methods

Constructors

constructor

+ new Point(x: number, y: number): Point
Parameters:
Name
Type
Default
x
number
0
y
number
0
Returns: Point

Properties

x

x: number

y

y: number

Methods

clone

clone(): Point‹›
Returns a copy of Point that can be mutated separately.
Returns: Point‹›

cloneTo

cloneTo(point: Point): Point‹›
Copies all of this Point's properties to a Point specified in an argument. Returns the point passed as argument.
Parameters:
Name
Type
point
Point
Returns: Point‹›

toString

toString(): string
Returns: string
Last modified 3yr ago