#

API Documentation for: 0.8.1
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
- initialize deprecated
- setValues
- toString

### Properties

- x
- y

## Methods

### `clone`

() Point

Defined in `clone:115`

Returns a clone of the Point instance.

#### Returns:

Point:

a clone of the Point instance.

### `copy`

(

- `point`

)
Point chainable

Defined in `copy:102`

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`

() deprecated protected

Defined in `initialize:73`

REMOVED. Removed in favor of using `MySuperClass_constructor`. See extend and promote for details.

There is an inheritance tutorial distributed with EaselJS in /tutorials/Inheritance.

### `setValues`

(

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

)
Point chainable

Defined in `setValues:88`

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:124`

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.