Point

The Point object represents a point in the two dimensional space of the Paper.js project. It is also used to represent two dimensional vector objects.

Wherever a point is the only argument of a function, it can also be passed as two numbers, e.g. point.add(10, 20) or item.translate(10, 20).

Example:Create a point at x: 10, y: 5

var point = new Point(10, 5);
console.log(point.x); // 10
console.log(point.y); // 5

Constructors

Operators

Properties

Methods

Tests

Vector Math Functions

Math Functions

Math Operator Functions

Static Methods