Class

PlotUtil

PlotUtil()

Constructor

# new PlotUtil()

军标绘制的算法工具

Author:
  • xyj

Methods

# static distance(pnt1, pnt2) → {number}

Parameters:
Name Type Description
pnt1
pnt2
number

# static getAngleOfThreePoints(pntA, pntB, pntC) → {number}

Parameters:
Name Type Description
pntA
pntB
pntC
number

# static getArcPoints(center, radius, startAngle, endAngle) → {any}

Parameters:
Name Type Description
center
radius
startAngle
endAngle
any

# static getAzimuth(startPnt, endPnt) → {number}

Parameters:
Name Type Description
startPnt
endPnt
number

# static getBaseLength(points) → {number}

Parameters:
Name Type Description
points
number

# static getBezierPoints(points) → {any}

Parameters:
Name Type Description
points
any

# static getBinomialFactor(n, index) → {number}

Parameters:
Name Type Description
n
index
number

# static getBisectorNormals(t, pnt1, pnt2, pnt3) → {any}

Parameters:
Name Type Description
t
pnt1
pnt2
pnt3
any

# static getCircleCenterOfThreePoints(pnt1, pnt2, pnt3) → {any}

Parameters:
Name Type Description
pnt1
pnt2
pnt3
any

# static getCubicValue(t, startPnt, cPnt1, cPnt2, endPnt) → {any}

Parameters:
Name Type Description
t
startPnt
cPnt1
cPnt2
endPnt
any

# static getCurvePoints(t, controlPoints) → {any}

Parameters:
Name Type Description
t
controlPoints
any

# static getFactorial(n) → {number}

Parameters:
Name Type Description
n
number

# static getIntersectPoint(pntA, pntB, pntC, pntD) → {any}

Parameters:
Name Type Description
pntA
pntB
pntC
pntD
any

# static getLeftMostControlPoint(t, controlPoints) → {any}

Parameters:
Name Type Description
t
controlPoints
any

# static getNormal(pnt1, pnt2, pnt3) → {any}

Parameters:
Name Type Description
pnt1
pnt2
pnt3
any

# static getPointOnLine(t, startPnt, endPnt) → {any}

Parameters:
Name Type Description
t
startPnt
endPnt
any

# static getQBSplinePoints(points) → {any}

Parameters:
Name Type Description
points
any

# static getQuadricBSplineFactor(k, t) → {number}

Parameters:
Name Type Description
k
t
number

# static getRightMostControlPoint(t, controlPoints) → {any}

Parameters:
Name Type Description
t
controlPoints
any

# static getThirdPoint(startPnt, endPnt, angle, distance, clockWise) → {any}

Parameters:
Name Type Description
startPnt
endPnt
angle
distance
clockWise
any

# static isClockWise(pnt1, pnt2, pnt3) → {boolean}

Parameters:
Name Type Description
pnt1
pnt2
pnt3
boolean

# static mid(pnt1, pnt2) → {Array.<number>}

Parameters:
Name Type Description
pnt1
pnt2
Array.<number>

# static wholeDistance(points) → {number}

Parameters:
Name Type Description
points
number