Methods
-
abs ()Point
-
Returns:
Type Description Point -
add (other)Point
-
Name Type Description other
number | Point Returns:
Type Description Point -
Returns:
Type Description Array.<number> -
ceil ()Point
-
Returns:
Type Description Point -
copy ()Point
-
Returns:
Type Description Point -
corner (cornerPoint)Rectangle
-
Name Type Description cornerPoint
Point Returns:
Type Description Rectangle -
crossProduct (aPoint)Point
-
Name Type Description aPoint
Point Returns:
Type Description Point -
Returns:
Type Description number -
distanceAngle (dist, angle)Point
-
Name Type Description dist
number angle
number Returns:
Type Description Point -
Name Type Description aPoint
Point Returns:
Type Description number -
divideBy (other)Point
-
Name Type Description other
number | Point Returns:
Type Description Point -
Name Type Description aPoint
Point Returns:
Type Description boolean -
extent (aPoint)Rectangle
-
Name Type Description aPoint
Point Returns:
Type Description Rectangle -
flip (direction, center)Point
-
Name Type Description direction
String center
Point Returns:
Type Description Point -
floor ()Point
-
Returns:
Type Description Point -
floorDivideBy (other)Point
-
Name Type Description other
number | Point Returns:
Type Description Point -
Name Type Description aPoint
Point Returns:
Type Description boolean -
Name Type Description aPoint
Point Returns:
Type Description boolean -
Name Type Description aPoint
Point Returns:
Type Description boolean -
Name Type Description aPoint
Point Returns:
Type Description boolean -
max (aPoint)Point
-
Name Type Description aPoint
Point Returns:
Type Description Point -
min (aPoint)Point
-
Name Type Description aPoint
Point Returns:
Type Description Point -
mirror ()Point
-
Returns:
Type Description Point -
multiplyBy (other)Point
-
Name Type Description other
number | Point Returns:
Type Description Point -
neg ()Point
-
Returns:
Type Description Point -
Returns:
Type Description number -
rectangle (aPoint)Rectangle
-
Name Type Description aPoint
Point Returns:
Type Description Rectangle -
rotate (direction, center)Point
-
Name Type Description direction
String center
Point Returns:
Type Description Point -
rotateBy (angle, centerPoint)Point
-
Name Type Description angle
number centerPoint
Point Returns:
Type Description Point -
round ()Point
-
Returns:
Type Description Point -
scaleBy (scalePoint)Point
-
Name Type Description scalePoint
Point Returns:
Type Description Point -
subtract (other)Point
-
Name Type Description other
number | Point Returns:
Type Description Point -
Returns:
Type Description number -
Returns:
Type Description String Example
'1@2'
-
translateBy (deltaPoint)Point
-
Name Type Description deltaPoint
Point Returns:
Type Description Point