API Documentation for: 0.7.1
Show:

Point Class

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

Parameters:

  • [x=0] Number optional

    X position.

  • [y=0] Number optional

    Y position.

Item Index

Properties

Methods

clone

() Point

Defined in clone:96

Returns a clone of the Point instance.

Returns:

Point:

a clone of the Point instance.

copy

(
  • point
)
Point

Defined in copy:86

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:72

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:105

Returns a string representation of this object.

Returns:

String:

a string representation of the instance.

Properties

x

Number

Defined in x:57

X position.

y

Number

Defined in y:64

Y position.