Constructor
new Protractor(points)
Parameters:
Name | Type | Description |
---|---|---|
points | Array.<Point2D> | The list of Point2D that make the protractor. |
- Source
Classes
Methods
getCentroid() → {Point2D}
Get the centroid of the protractor.
- Source
Returns:
THe centroid point.
- Type:
- Point2D
getLength() → {number}
Get the length of the path (should be 3).
- Source
Returns:
The length of the path.
- Type:
- number
getPoint(index) → {Point2D|undefined}
Get a point of the list.
Parameters:
Name | Type | Description |
---|---|---|
index | number | The index of the point to get (beware, no size check). |
- Source
Returns:
The Point2D at the given index.
- Type:
- Point2D |
undefined
quantify(_viewController, _flags) → {object}
Quantify a path according to view information.
Parameters:
Name | Type | Description |
---|---|---|
_viewController | ViewController | The associated view controller. |
_flags | Array.<string> | A list of stat values to calculate. |
- Source
Returns:
A quantification object.
- Type:
- object