Point Class
Point related functions
Methods
area
(
Number
static
-
a
-
b
-
c
Get the area of a triangle spanned by the three given points. Note that the area will be negative if the points are not given in counter-clockwise order.
Parameters:
-
a
Array -
b
Array -
c
Array
Returns:
Number:
collinear
(
Boolean
-
a
-
b
-
c
-
[thresholdAngle=0]
Check if three points are collinear
Parameters:
-
a
Array -
b
Array -
c
Array -
[thresholdAngle=0]
Number optionalThreshold angle to use when comparing the vectors. The function will return true if the angle between the resulting vectors is less than this value. Use zero for max precision.
Returns:
Boolean: