SiteWatch API Help

SWPoint Class

SWPoint Class

Previous topic Next topic  

SWPoint Class

Previous topic Next topic  

A point class.

 

Properties

Description

x: number

x-coordinate.

y: number

y-coordinate.

 

Methods

Description

create(x: number, y: number): SWPoint

Creates a SWPoint object.

 

Static Methods

Description

sum(point1: SWPoint, point2: SWPoint): SWPoint

Adds two SWPoints together.

subtract(point1: SWPoint, point2: SWPoint): SWPoint

Subtracts one SWPoint from another SWPoint.

scale(point: SWPoint, n: integer): SWPoint

Multiplies SWPoints to a number.