#

API Documentation for: NEXT
Show: Inherited Protected Private Deprecated

# Point Class

Defined in: `Point:39`
Module: EaselJS

Represents a point on a 2 dimensional x / y coordinate system.

#### Example

     var point = new createjs.Point(0, 100);

## Constructor

### `Point`

(

- `[x=0]`
- `[y=0]`

)

Defined in `Point:39`

#### Parameters:

- `[x=0]` Number optional

  X position.

- `[y=0]` Number optional

  Y position.

- Index
- Methods
- Properties

## Item Index

### Methods

- clone
- copy
- initialize
- toString

### Properties

- x
- y

## Methods

### `clone`

() Point

Defined in `clone:97`

Returns a clone of the Point instance.

#### Returns:

Point:

a clone of the Point instance.

### `copy`

(

- `point`

)
Point

Defined in `copy:87`

Copies all properties from the specified point to this point.

#### Parameters:

- `point` Point

  The point to copy properties from.

#### Returns:

Point:

This point. Useful for chaining method calls.

### `initialize`

(

- `[x=0]`
- `[y=0]`

)
Point

Defined in `initialize:73`

Initialization method. Can also be used to reinitialize the instance.

#### Parameters:

- `[x=0]` Number optional

  X position.

- `[y=0]` Number optional

  Y position.

#### Returns:

Point:

This instance. Useful for chaining method calls.

### `toString`

() String

Defined in `toString:106`

Returns a string representation of this object.

#### Returns:

String:

a string representation of the instance.

## Properties

### `x`

Number

Defined in `x:58`

X position.

### `y`

Number

Defined in `y:65`

Y position.