PointCollection

PointCollection

{Object} PointCollection X & Y coordinates for an object

Constructor

new PointCollection()

Description:
  • Create a point collection
Source:
Properties:
Name Type Attributes Default Description
x number <optional>
0 X - x-axis coordinate
y number <optional>
0 Y - y-axis coordinate
options OptionsCollection Ancillary properties

Methods

invert()

Description:
  • Invert x & y coordinate values
Source:

options() → {OptionsCollection}

Description:
  • Get options
Source:
Returns:
Options collection object
Type
OptionsCollection

x(value)

Description:
  • Set x-axis value
Source:
Parameters:
Name Type Description
value number X coordinate value

x() → {number}

Description:
  • Get x-axis value
Source:
Returns:
X coordinate value
Type
number

y(value)

Description:
  • Set the y-axis value
Source:
Parameters:
Name Type Description
value number Y coordinate value

y() → {number}

Description:
  • Get y-axis value
Source:
Returns:
Y coordinate value
Type
number