Skip to content

xgis-cesium v0.1.7


xgis-cesium / PlotUtil

Class: PlotUtil ​

Defined in: src/utils/PlotUtil.ts:7

Constructors ​

new PlotUtil() ​

new PlotUtil(): PlotUtil

Returns ​

PlotUtil

Methods ​

distance() ​

static distance(pnt1, pnt2): number

Defined in: src/utils/PlotUtil.ts:13

Parameters ​

pnt1 ​

any

pnt2 ​

any

Returns ​

number


getAngleOfThreePoints() ​

static getAngleOfThreePoints(pntA, pntB, pntC): number

Defined in: src/utils/PlotUtil.ts:115

Parameters ​

pntA ​

any

pntB ​

any

pntC ​

any

Returns ​

number


getArcPoints() ​

static getArcPoints(center, radius, startAngle, endAngle): any[]

Defined in: src/utils/PlotUtil.ts:196

Parameters ​

center ​

any

radius ​

any

startAngle ​

any

endAngle ​

any

Returns ​

any[]


getAzimuth() ​

static getAzimuth(startPnt, endPnt): any

Defined in: src/utils/PlotUtil.ts:94

Parameters ​

startPnt ​

any

endPnt ​

any

Returns ​

any


getBaseLength() ​

static getBaseLength(points): number

Defined in: src/utils/PlotUtil.ts:34

Parameters ​

points ​

any

Returns ​

number


getBezierPoints() ​

static getBezierPoints(points): any

Defined in: src/utils/PlotUtil.ts:406

Parameters ​

points ​

any

Returns ​

any


getBinomialFactor() ​

static getBinomialFactor(n, index): number

Defined in: src/utils/PlotUtil.ts:432

Parameters ​

n ​

any

index ​

any

Returns ​

number


getBisectorNormals() ​

static getBisectorNormals(t, pnt1, pnt2, pnt3): any[]

Defined in: src/utils/PlotUtil.ts:218

Parameters ​

t ​

any

pnt1 ​

any

pnt2 ​

any

pnt3 ​

any

Returns ​

any[]


getCircleCenterOfThreePoints() ​

static getCircleCenterOfThreePoints(pnt1, pnt2, pnt3): any[]

Defined in: src/utils/PlotUtil.ts:53

Parameters ​

pnt1 ​

any

pnt2 ​

any

pnt3 ​

any

Returns ​

any[]


getCubicValue() ​

static getCubicValue(t, startPnt, cPnt1, cPnt2, endPnt): number[]

Defined in: src/utils/PlotUtil.ts:153

Parameters ​

t ​

any

startPnt ​

any

cPnt1 ​

any

cPnt2 ​

any

endPnt ​

any

Returns ​

number[]


getCurvePoints() ​

static getCurvePoints(t, controlPoints): any[]

Defined in: src/utils/PlotUtil.ts:286

Parameters ​

t ​

any

controlPoints ​

any

Returns ​

any[]


getFactorial() ​

static getFactorial(n): number

Defined in: src/utils/PlotUtil.ts:443

Parameters ​

n ​

any

Returns ​

number


getIntersectPoint() ​

static getIntersectPoint(pntA, pntB, pntC, pntD): any[]

Defined in: src/utils/PlotUtil.ts:68

Parameters ​

pntA ​

any

pntB ​

any

pntC ​

any

pntD ​

any

Returns ​

any[]


getLeftMostControlPoint() ​

static getLeftMostControlPoint(t, controlPoints): any[]

Defined in: src/utils/PlotUtil.ts:324

Parameters ​

t ​

any

controlPoints ​

any

Returns ​

any[]


getNormal() ​

static getNormal(pnt1, pnt2, pnt3): number[]

Defined in: src/utils/PlotUtil.ts:263

Parameters ​

pnt1 ​

any

pnt2 ​

any

pnt3 ​

any

Returns ​

number[]


getPointOnLine() ​

static getPointOnLine(t, startPnt, endPnt): any[]

Defined in: src/utils/PlotUtil.ts:139

Parameters ​

t ​

any

startPnt ​

any

endPnt ​

any

Returns ​

any[]


getQBSplinePoints() ​

static getQBSplinePoints(points): any

Defined in: src/utils/PlotUtil.ts:458

Parameters ​

points ​

any

Returns ​

any


getQuadricBSplineFactor() ​

static getQuadricBSplineFactor(k, t): number

Defined in: src/utils/PlotUtil.ts:485

Parameters ​

k ​

any

t ​

any

Returns ​

number


getRightMostControlPoint() ​

static getRightMostControlPoint(t, controlPoints): any[]

Defined in: src/utils/PlotUtil.ts:363

Parameters ​

t ​

any

controlPoints ​

any

Returns ​

any[]


getThirdPoint() ​

static getThirdPoint(startPnt, endPnt, angle, distance, clockWise): any[]

Defined in: src/utils/PlotUtil.ts:181

Parameters ​

startPnt ​

any

endPnt ​

any

angle ​

any

distance ​

any

clockWise ​

any

Returns ​

any[]


isClockWise() ​

static isClockWise(pnt1, pnt2, pnt3): boolean

Defined in: src/utils/PlotUtil.ts:126

Parameters ​

pnt1 ​

any

pnt2 ​

any

pnt3 ​

any

Returns ​

boolean


mid() ​

static mid(pnt1, pnt2): number[]

Defined in: src/utils/PlotUtil.ts:43

Parameters ​

pnt1 ​

any

pnt2 ​

any

Returns ​

number[]


wholeDistance() ​

static wholeDistance(points): number

Defined in: src/utils/PlotUtil.ts:23

Parameters ​

points ​

any

Returns ​

number