- Preparing search index...
- The search index is not available
feng3d
Methods
bn
- bn(t: number, ps: number[], processs?: number[][]): number
-
Parameters
-
t: number
-
ps: number[]
-
processs: number[][] = null
Returns number
bnDerivative
- bnDerivative(t: number, ps: number[]): number
-
Returns number
bnND
- bnND(t: number, dn: number, ps: number[]): number
-
Parameters
-
t: number
-
dn: number
-
ps: number[]
Returns number
bnSecondDerivative
- bnSecondDerivative(t: number, ps: number[]): number
-
Returns number
cubic
- cubic(t: number, p0: number, p1: number, p2: number, p3: number): number
-
Parameters
-
t: number
-
p0: number
-
p1: number
-
p2: number
-
p3: number
Returns number
cubicDerivative
- cubicDerivative(t: number, p0: number, p1: number, p2: number, p3: number): number
-
Parameters
-
t: number
-
p0: number
-
p1: number
-
p2: number
-
p3: number
Returns number
cubicSecondDerivative
- cubicSecondDerivative(t: number, p0: number, p1: number, p2: number, p3: number): number
-
Parameters
-
t: number
-
p0: number
-
p1: number
-
p2: number
-
p3: number
Returns number
getDerivative
- getDerivative(t: number, ps: number[]): number
-
Returns number
getExtremums
- getExtremums(ps: number[], numSamples?: number, precision?: number): {
ts: number[];
vs: number[];
}
-
Parameters
-
ps: number[]
-
numSamples: number = 10
-
precision: number = 0.0000001
Returns {
ts: number[];
vs: number[];
}
-
ts: number[]
-
vs: number[]
getMonotoneIntervals
- getMonotoneIntervals(ps: number[], numSamples?: number, precision?: number): {
ts: number[];
vs: number[];
}
-
Parameters
-
ps: number[]
-
numSamples: number = 10
-
precision: number = 0.0000001
Returns {
ts: number[];
vs: number[];
}
-
ts: number[]
-
vs: number[]
getSamples
- getSamples(ps: number[], num?: number): {
t: number;
v: number;
}[]
-
Parameters
-
ps: number[]
-
num: number = 100
Returns {
t: number;
v: number;
}[]
getSecondDerivative
- getSecondDerivative(t: number, ps: number[]): number
-
Returns number
getTFromValue
- getTFromValue(targetV: number, ps: number[], numSamples?: number, precision?: number): number[]
-
Parameters
-
targetV: number
-
ps: number[]
-
numSamples: number = 10
-
precision: number = 0.0000001
Returns number[]
getValue
- getValue(t: number, ps: number[]): number
-
Returns number
linear
- linear(t: number, p0: number, p1: number): number
-
Parameters
-
t: number
-
p0: number
-
p1: number
Returns number
linearDerivative
- linearDerivative(t: number, p0: number, p1: number): number
-
Parameters
-
t: number
-
p0: number
-
p1: number
Returns number
linearSecondDerivative
- linearSecondDerivative(_t: number, _p0: number, _p1: number): number
-
Parameters
-
_t: number
-
_p0: number
-
_p1: number
Returns number
merge
- merge(fps: number[], sps: number[], mergeType?: number): number[]
-
Parameters
-
fps: number[]
-
sps: number[]
-
mergeType: number = 0
Returns number[]
quadratic
- quadratic(t: number, p0: number, p1: number, p2: number): number
-
Parameters
-
t: number
-
p0: number
-
p1: number
-
p2: number
Returns number
quadraticDerivative
- quadraticDerivative(t: number, p0: number, p1: number, p2: number): number
-
Parameters
-
t: number
-
p0: number
-
p1: number
-
p2: number
Returns number
quadraticSecondDerivative
- quadraticSecondDerivative(t: number, p0: number, p1: number, p2: number): number
-
Parameters
-
t: number
-
p0: number
-
p1: number
-
p2: number
Returns number
split
- split(t: number, ps: number[]): number[][]
-
Returns number[][]
Bézier曲线
See
https://en.wikipedia.org/wiki/B%C3%A9zier_curve
Author
feng / http://feng3d.com 03/06/2018