#

API Documentation for: 1.0.0
Show: Inherited Protected Private Deprecated

# Point Class

Defined in: `Point:41`
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:41`

#### Parameters:

- `[x=0]` Number optional

  X position.

- `[y=0]` Number optional

  Y position.

- Index
- Methods
- Properties

## Item Index

### Methods

- clone
- copy
- setValues
- toString

### Properties

- x
- y

## Methods

### `clone`

() Point

Defined in `clone:101`

Returns a clone of the Point instance.

#### Returns:

Point:

a clone of the Point instance.

### `copy`

(

- `point`

)
Point chainable

Defined in `copy:88`

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.

### `setValues`

(

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

)
Point chainable

Defined in `setValues:74`

Sets the specified values on this 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:110`

Returns a string representation of this object.

#### Returns:

String:

a string representation of the instance.

## Properties

### `x`

Number

Defined in `x:59`

X position.

### `y`

Number

Defined in `y:65`

Y position.