Point
Hierarchy
Point
Index
Constructors
Properties
Methods
Constructors
constructor
+ new Point(x
: number, y
: number): Point
Parameters:
Name | Type | Default |
| number | 0 |
| 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 |
|
Returns: Point‹›
toString
▸ toString(): string
Returns: string
Last updated