Constructor
#
new PlotUtil()
- Author:
-
Methods
#
static
distance(pnt1, pnt2) → {number}
Parameters:
| Name |
Type |
Description |
pnt1 |
|
|
pnt2 |
|
|
#
static
getAngleOfThreePoints(pntA, pntB, pntC) → {number}
Parameters:
| Name |
Type |
Description |
pntA |
|
|
pntB |
|
|
pntC |
|
|
#
static
getArcPoints(center, radius, startAngle, endAngle) → {any}
Parameters:
| Name |
Type |
Description |
center |
|
|
radius |
|
|
startAngle |
|
|
endAngle |
|
|
#
static
getAzimuth(startPnt, endPnt) → {number}
Parameters:
| Name |
Type |
Description |
startPnt |
|
|
endPnt |
|
|
#
static
getBaseLength(points) → {number}
Parameters:
| Name |
Type |
Description |
points |
|
|
#
static
getBezierPoints(points) → {any}
Parameters:
| Name |
Type |
Description |
points |
|
|
#
static
getBinomialFactor(n, index) → {number}
Parameters:
| Name |
Type |
Description |
n |
|
|
index |
|
|
#
static
getBisectorNormals(t, pnt1, pnt2, pnt3) → {any}
Parameters:
| Name |
Type |
Description |
t |
|
|
pnt1 |
|
|
pnt2 |
|
|
pnt3 |
|
|
#
static
getCircleCenterOfThreePoints(pnt1, pnt2, pnt3) → {any}
Parameters:
| Name |
Type |
Description |
pnt1 |
|
|
pnt2 |
|
|
pnt3 |
|
|
#
static
getCubicValue(t, startPnt, cPnt1, cPnt2, endPnt) → {any}
Parameters:
| Name |
Type |
Description |
t |
|
|
startPnt |
|
|
cPnt1 |
|
|
cPnt2 |
|
|
endPnt |
|
|
#
static
getCurvePoints(t, controlPoints) → {any}
Parameters:
| Name |
Type |
Description |
t |
|
|
controlPoints |
|
|
#
static
getFactorial(n) → {number}
Parameters:
#
static
getIntersectPoint(pntA, pntB, pntC, pntD) → {any}
Parameters:
| Name |
Type |
Description |
pntA |
|
|
pntB |
|
|
pntC |
|
|
pntD |
|
|
#
static
getLeftMostControlPoint(t, controlPoints) → {any}
Parameters:
| Name |
Type |
Description |
t |
|
|
controlPoints |
|
|
#
static
getNormal(pnt1, pnt2, pnt3) → {any}
Parameters:
| Name |
Type |
Description |
pnt1 |
|
|
pnt2 |
|
|
pnt3 |
|
|
#
static
getPointOnLine(t, startPnt, endPnt) → {any}
Parameters:
| Name |
Type |
Description |
t |
|
|
startPnt |
|
|
endPnt |
|
|
#
static
getQBSplinePoints(points) → {any}
Parameters:
| Name |
Type |
Description |
points |
|
|
#
static
getQuadricBSplineFactor(k, t) → {number}
Parameters:
| Name |
Type |
Description |
k |
|
|
t |
|
|
#
static
getRightMostControlPoint(t, controlPoints) → {any}
Parameters:
| Name |
Type |
Description |
t |
|
|
controlPoints |
|
|
#
static
getThirdPoint(startPnt, endPnt, angle, distance, clockWise) → {any}
Parameters:
| Name |
Type |
Description |
startPnt |
|
|
endPnt |
|
|
angle |
|
|
distance |
|
|
clockWise |
|
|
#
static
isClockWise(pnt1, pnt2, pnt3) → {boolean}
Parameters:
| Name |
Type |
Description |
pnt1 |
|
|
pnt2 |
|
|
pnt3 |
|
|
#
static
mid(pnt1, pnt2) → {Array.<number>}
Parameters:
| Name |
Type |
Description |
pnt1 |
|
|
pnt2 |
|
|
#
static
wholeDistance(points) → {number}
Parameters:
| Name |
Type |
Description |
points |
|
|