API Documentation for: 0.6.1
Show:

Point Class

Defined in: Point:34
Module: EaselJS

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

Example

 var point = new Point(0, 100);

Constructor

Point

(
  • [x=0]
  • [y=0]
)

Defined in Point:34

Parameters:

  • [x=0] Number optional

    X position.

  • [y=0] Number optional

    Y position.

Item Index

Properties

Methods

clone

() Point

Defined in clone:78

Returns a clone of the Point instance.

Returns:

Point: a clone of the Point instance.

initialize

() protected

Defined in initialize:67

Initialization method.

toString

() String

Defined in toString:87

Returns a string representation of this object.

Returns:

String: a string representation of the instance.

Properties

x

Number

Defined in x:52

X position.

y

Number

Defined in y:59

Y position.