Methods
addPoint(coordinates, nIndex) → {number}
Add Point by coordinates
Parameters:
Name | Type | Description |
---|---|---|
coordinates | gem. | |
nIndex | number |
Returns:
- index of the point
- Type:
- number
getCoordinatesPartAt(nId) → {object}
Parameters:
Name | Type | Description |
---|---|---|
nId | number | index of coordinates part |
Returns:
- vector of coordinates
- Type:
- object
getId() → {number}
Get id of the vector
Returns:
- Type:
- number
getInfo() → {string}
get information about the vector
Returns:
- information about vector
- Type:
- string
movePoint(pointId, coordinates)
Change position of a point
Parameters:
Name | Type | Description |
---|---|---|
pointId | number | id of the point |
coordinates | gem. | coordinates where to move the point |
removePoint(nId)
Remove point at index location
Parameters:
Name | Type | Description |
---|---|---|
nId | number |
size() → {number}
size of the vector
Returns:
- size of the vector
- Type:
- number