From f7e32e0616d8eefa361ec3ce339a00054c2ce4c1 Mon Sep 17 00:00:00 2001 From: kjerandp Date: Wed, 22 Nov 2023 10:06:16 +0100 Subject: [PATCH] Added range parameters to getFrenetFrames --- docs/classes/CurveInterpolator.html | 134 ++++++++++-------- docs/classes/LinearCurveMapper.html | 52 +++---- docs/classes/NumericalCurveMapper.html | 62 ++++---- docs/classes/Point.html | 30 ++-- .../_internal_.AbstractCurveMapper.html | 48 +++---- docs/functions/add.html | 2 +- docs/functions/binarySearch.html | 2 +- docs/functions/calcKnotSequence.html | 2 +- docs/functions/calculateCoefficients.html | 2 +- docs/functions/clamp.html | 2 +- docs/functions/copyValues.html | 2 +- docs/functions/cross.html | 2 +- docs/functions/derivativeAtT.html | 2 +- docs/functions/distance.html | 2 +- docs/functions/dot.html | 2 +- docs/functions/evaluateForT.html | 2 +- docs/functions/extrapolateControlPoint.html | 2 +- docs/functions/fill.html | 2 +- docs/functions/findRootsOfT.html | 2 +- docs/functions/getControlPoints.html | 2 +- docs/functions/getCubicRoots.html | 2 +- docs/functions/getQuadRoots.html | 2 +- docs/functions/getSegmentIndexAndT.html | 2 +- docs/functions/magnitude.html | 2 +- docs/functions/map.html | 2 +- docs/functions/normalize.html | 2 +- docs/functions/orthogonal.html | 2 +- docs/functions/reduce.html | 2 +- docs/functions/rotate2d.html | 2 +- docs/functions/rotate3d.html | 2 +- docs/functions/secondDerivativeAtT.html | 2 +- docs/functions/simplify2d.html | 2 +- docs/functions/sub.html | 2 +- docs/functions/sumOfSquares.html | 2 +- docs/functions/valueAtT.html | 2 +- docs/interfaces/_internal_.BBox.html | 6 +- .../_internal_.CurveInterpolatorOptions.html | 16 +-- docs/interfaces/_internal_.CurveMapper.html | 22 +-- .../_internal_.CurveParameters.html | 6 +- .../_internal_.SplineCurveOptions.html | 8 +- docs/interfaces/_internal_.VectorType.html | 20 +-- docs/types/_internal_.NumArray4.html | 2 +- docs/types/_internal_.SegmentFunction.html | 2 +- docs/types/_internal_.Vector.html | 2 +- docs/variables/EPS.html | 2 +- package.json | 2 +- src/curve-interpolator.ts | 12 +- 47 files changed, 250 insertions(+), 236 deletions(-) diff --git a/docs/classes/CurveInterpolator.html b/docs/classes/CurveInterpolator.html index d9823e1..d35100f 100644 --- a/docs/classes/CurveInterpolator.html +++ b/docs/classes/CurveInterpolator.html @@ -23,7 +23,7 @@

Hierarchy

+
  • Defined in curve-interpolator.ts:38
  • @@ -108,24 +108,24 @@
    options:

    Returns CurveInterpolator

    +
  • Defined in curve-interpolator.ts:48
  • Properties

    _cache: Map<string, object> = ...
    +
  • Defined in curve-interpolator.ts:41
  • _curveMapper: CurveMapper
    +
  • Defined in curve-interpolator.ts:40
  • _lmargin: number
    +
  • Defined in curve-interpolator.ts:39
  • Accessors

    @@ -135,7 +135,7 @@

    Returns void

    +
  • Defined in curve-interpolator.ts:779
  • set closed(isClosed: boolean): void
  • @@ -163,7 +163,7 @@

    Parameters

    isClosed: boolean
  • Returns void

    +
  • Defined in curve-interpolator.ts:783
  • +
  • Defined in curve-interpolator.ts:819
  • +
  • Defined in curve-interpolator.ts:785
  • +
  • Defined in curve-interpolator.ts:794
  • +
  • Defined in curve-interpolator.ts:804
  • +
  • Defined in curve-interpolator.ts:814
  • +
  • Defined in curve-interpolator.ts:789
  • +
  • Defined in curve-interpolator.ts:799
  • +
  • Defined in curve-interpolator.ts:809
  • set points(pts: Vector[]): void
  • @@ -245,7 +245,7 @@

    Parameters

    pts: Vector[]
  • Returns void

    +
  • Defined in curve-interpolator.ts:771
  • set tension(t: number): void
  • @@ -263,7 +263,7 @@

    Parameters

    t: number
  • Returns void

    +
  • Defined in curve-interpolator.ts:775
  • Methods

    @@ -275,7 +275,7 @@

    Returns CurveInterpolator

    +
  • Defined in curve-interpolator.ts:757
  • Returns Map<number, T>

    +
  • Defined in curve-interpolator.ts:621
  • +
  • Defined in curve-interpolator.ts:661
  • +
  • Defined in curve-interpolator.ts:403
  • +
  • Defined in curve-interpolator.ts:322
  • +
  • Defined in curve-interpolator.ts:334
  • Returns T

    +
  • Defined in curve-interpolator.ts:376
  • @@ -494,11 +494,11 @@

    Parameters

    position: number
  • Returns Vector

    +
  • Defined in curve-interpolator.ts:377
  • Returns {
        binormals?: Vector[];
        normals: Vector[];
        tangents: Vector[];
    }

    +
  • Defined in curve-interpolator.ts:235
  • Returns Vector | Vector[]

    +
  • Defined in curve-interpolator.ts:556
  • Returns number[]

    +
  • Defined in curve-interpolator.ts:567
  • Returns number[]

    +
  • Defined in curve-interpolator.ts:577
  • Returns number

    +
  • Defined in curve-interpolator.ts:103
  • +
  • Defined in curve-interpolator.ts:495
  • Returns T

    +
  • Defined in curve-interpolator.ts:191
  • @@ -701,7 +709,7 @@

    Parameters

    position: number
  • Returns Vector

    +
  • Defined in curve-interpolator.ts:192
  • Returns T

    +
  • Defined in curve-interpolator.ts:204
  • @@ -738,7 +746,7 @@

    Parameters

    t: number
  • Returns Vector

    +
  • Defined in curve-interpolator.ts:205
  • Returns T

    +
  • Defined in curve-interpolator.ts:155
  • @@ -774,7 +782,7 @@

    Parameters

    position: number
  • Returns Vector

    +
  • Defined in curve-interpolator.ts:156
  • +
  • Defined in curve-interpolator.ts:140
  • Returns T[]

    +
  • Defined in curve-interpolator.ts:468
  • @@ -857,7 +865,7 @@

    Returns from: number

  • Returns T[]

    +
  • Defined in curve-interpolator.ts:469
  • @@ -884,12 +892,12 @@
    from: number
  • to: number

    Returns T[]

    +
  • Defined in curve-interpolator.ts:470
  • Returns any

  • +
  • Defined in curve-interpolator.ts:471
  • @@ -899,7 +907,7 @@

    Parameters

    segments: number
  • Returns any

    +
  • Defined in curve-interpolator.ts:472
  • @@ -915,7 +923,7 @@
    from: number
  • to: number

    Returns Vector[]

    +
  • Defined in curve-interpolator.ts:473
  • Returns number

    +
  • Defined in curve-interpolator.ts:127
  • +
  • Defined in curve-interpolator.ts:93
  • +
  • Defined in curve-interpolator.ts:83
  • Returns T

    +
  • Defined in curve-interpolator.ts:389
  • @@ -1014,7 +1022,7 @@

    Parameters

    position: number
  • Returns Vector

    +
  • Defined in curve-interpolator.ts:390
  • Returns T

    +
  • Defined in curve-interpolator.ts:166
  • @@ -1050,7 +1058,7 @@

    Parameters

    position: number
  • Returns Vector

    +
  • Defined in curve-interpolator.ts:167
  • Returns T

    +
  • Defined in curve-interpolator.ts:178
  • @@ -1086,7 +1094,7 @@

    Parameters

    t: number
  • Returns Vector

    +
  • Defined in curve-interpolator.ts:179
  • Returns number

    +
  • Defined in curve-interpolator.ts:112
  • +
  • Defined in curve-interpolator.ts:73
  • +
  • Defined in curve-interpolator.ts:695
  • +
  • Defined in curve-interpolator.ts:731
  • +
  • Defined in curve-interpolator.ts:765
  • +
  • Defined in curve-mappers/abstract-curve-mapper.ts:22
  • _points: Vector[]
    +
  • Defined in curve-mappers/abstract-curve-mapper.ts:18
  • _subDivisions: number
    +
  • Defined in curve-mappers/segmented-curve-mapper.ts:14
  • _tension: number = 0.5
    +
  • Defined in curve-mappers/abstract-curve-mapper.ts:20
  • Accessors

    @@ -158,7 +158,7 @@ +
  • Defined in curve-mappers/abstract-curve-mapper.ts:61
  • set alpha(alpha: number): void
  • @@ -169,7 +169,7 @@
    alpha: number
  • Returns void

    +
  • Defined in curve-mappers/abstract-curve-mapper.ts:62
  • +
  • Defined in curve-mappers/segmented-curve-mapper.ts:26
  • set closed(closed: boolean): void
  • @@ -199,7 +199,7 @@
    closed: boolean
  • Returns void

    +
  • Defined in curve-mappers/abstract-curve-mapper.ts:94
  • set points(points: Vector[]): void
  • +
  • Defined in curve-mappers/abstract-curve-mapper.ts:84
  • set tension(tension: number): void
  • @@ -243,7 +243,7 @@
    tension: number
  • Returns void

    +
  • Defined in curve-mappers/abstract-curve-mapper.ts:73
  • Methods

    @@ -256,7 +256,7 @@
    +
  • Defined in curve-mappers/segmented-curve-mapper.ts:36
  • +
  • Defined in curve-mappers/segmented-curve-mapper.ts:45
  • +
  • Defined in curve-mappers/abstract-curve-mapper.ts:112
  • +
  • Defined in curve-mappers/abstract-curve-mapper.ts:124
  • +
  • Defined in curve-mappers/segmented-curve-mapper.ts:76
  • +
  • Defined in curve-mappers/segmented-curve-mapper.ts:103
  • +
  • Defined in curve-mappers/segmented-curve-mapper.ts:66
  • +
  • Defined in curve-mappers/abstract-curve-mapper.ts:102
  • +
  • Defined in curve-mappers/abstract-curve-mapper.ts:22
  • _points: Vector[]
    +
  • Defined in curve-mappers/abstract-curve-mapper.ts:18
  • _subDivisions: number
    +
  • Defined in curve-mappers/abstract-curve-mapper.ts:16
  • _tension: number = 0.5
    +
  • Defined in curve-mappers/abstract-curve-mapper.ts:20
  • Accessors

    @@ -179,7 +179,7 @@ +
  • Defined in curve-mappers/abstract-curve-mapper.ts:61
  • set alpha(alpha: number): void
  • @@ -190,7 +190,7 @@
    alpha: number
  • Returns void

    +
  • Defined in curve-mappers/abstract-curve-mapper.ts:62
  • +
  • Defined in curve-mappers/numerical-curve-mapper.ts:49
  • set closed(closed: boolean): void
  • @@ -220,7 +220,7 @@
    closed: boolean
  • Returns void

    +
  • Defined in curve-mappers/abstract-curve-mapper.ts:94
  • set points(points: Vector[]): void
  • +
  • Defined in curve-mappers/abstract-curve-mapper.ts:84
  • set tension(tension: number): void
  • @@ -264,7 +264,7 @@
    tension: number
  • Returns void

    +
  • Defined in curve-mappers/abstract-curve-mapper.ts:73
  • Methods

    @@ -277,7 +277,7 @@
    +
  • Defined in curve-mappers/numerical-curve-mapper.ts:43
  • +
  • Defined in curve-mappers/numerical-curve-mapper.ts:117
  • +
  • Defined in curve-mappers/numerical-curve-mapper.ts:138
  • +
  • Defined in curve-mappers/abstract-curve-mapper.ts:112
  • +
  • Defined in curve-mappers/abstract-curve-mapper.ts:124
  • Returns [number[], number[], number[], number[]]

    +
  • Defined in curve-mappers/numerical-curve-mapper.ts:62
  • +
  • Defined in curve-mappers/numerical-curve-mapper.ts:201
  • +
  • Defined in curve-mappers/numerical-curve-mapper.ts:222
  • Returns number

    +
  • Defined in curve-mappers/numerical-curve-mapper.ts:159
  • +
  • Defined in curve-mappers/numerical-curve-mapper.ts:192
  • +
  • Defined in curve-mappers/abstract-curve-mapper.ts:102
  • Returns void

    +
  • Defined in core/point.ts:23
  • set 1(y: number): void
  • @@ -134,7 +134,7 @@

    Parameters

    y: number
  • Returns void

    +
  • Defined in core/point.ts:31
  • set 2(z: number): void
  • @@ -152,7 +152,7 @@

    Parameters

    z: number
  • Returns void

    +
  • Defined in core/point.ts:39
  • set 3(w: number): void
  • @@ -170,7 +170,7 @@

    Parameters

    w: number
  • Returns void

    +
  • Defined in core/point.ts:47
  • +
  • Defined in core/point.ts:51
  • +
  • Defined in curve-mappers/abstract-curve-mapper.ts:22
  • _points: Vector[]
    +
  • Defined in curve-mappers/abstract-curve-mapper.ts:18
  • _subDivisions: number
    +
  • Defined in curve-mappers/abstract-curve-mapper.ts:16
  • _tension: number = 0.5
    +
  • Defined in curve-mappers/abstract-curve-mapper.ts:20
  • Accessors

    @@ -156,7 +156,7 @@ +
  • Defined in curve-mappers/abstract-curve-mapper.ts:61
  • set alpha(alpha: number): void
  • @@ -167,7 +167,7 @@
    alpha: number
  • Returns void

    +
  • Defined in curve-mappers/abstract-curve-mapper.ts:62
  • set closed(closed: boolean): void
  • @@ -189,7 +189,7 @@
    closed: boolean
  • Returns void

    +
  • Defined in curve-mappers/abstract-curve-mapper.ts:94
  • set points(points: Vector[]): void
  • +
  • Defined in curve-mappers/abstract-curve-mapper.ts:84
  • set tension(tension: number): void
  • @@ -233,7 +233,7 @@
    tension: number
  • Returns void

    +
  • Defined in curve-mappers/abstract-curve-mapper.ts:73
  • Methods

    @@ -247,7 +247,7 @@

    Returns

    void

    Returns void

    +
  • Defined in curve-mappers/abstract-curve-mapper.ts:40
  • +
  • Defined in curve-mappers/abstract-curve-mapper.ts:112
  • +
  • Defined in curve-mappers/abstract-curve-mapper.ts:124
  • Returns number

    +
  • Defined in curve-mappers/abstract-curve-mapper.ts:55
  • Returns number

    +
  • Defined in curve-mappers/abstract-curve-mapper.ts:56
  • +
  • Defined in curve-mappers/abstract-curve-mapper.ts:54
  • +
  • Defined in curve-mappers/abstract-curve-mapper.ts:102
  • +
  • Defined in core/utils.ts:112
  • +
  • Defined in core/math.ts:180
  • +
  • Defined in core/math.ts:86
  • +
  • Defined in core/spline-segment.ts:132
  • +
  • Defined in core/spline-curve.ts:11
  • Returns Vector

    +
  • Defined in core/utils.ts:8
  • Returns Vector[]

    +
  • Defined in core/spline-curve.ts:26
  • Returns number[]

    +
  • Defined in core/math.ts:43
  • Returns number[]

    +
  • Defined in core/math.ts:23
  • +
  • Defined in core/math.ts:166
  • Returns Vector

    +
  • Defined in core/utils.ts:20
  • +
  • Defined in core/math.ts:154
  • +
  • Defined in core/interfaces.ts:44
  • +
  • Defined in core/interfaces.ts:18
  • getCoefficients: ((idx: number) => NumArray4[])
    @@ -95,7 +95,7 @@

    Parameters

    idx: number

    Returns NumArray4[]

    +
  • Defined in core/interfaces.ts:22
  • getT: ((u: number) => number)
    @@ -113,7 +113,7 @@

    Parameters

    u: number

    Returns number

    +
  • Defined in core/interfaces.ts:20
  • getU: ((t: number) => number)
    @@ -131,7 +131,7 @@

    Parameters

    t: number

    Returns number

    +
  • Defined in core/interfaces.ts:21
  • lengthAt: ((u: number) => number)
    @@ -149,12 +149,12 @@

    Parameters

    u: number

    Returns number

    +
  • Defined in core/interfaces.ts:19
  • points: Vector[]
    +
  • Defined in core/interfaces.ts:15
  • reset: (() => void)
    @@ -167,12 +167,12 @@

    Type declaration

  • Returns void

  • +
  • Defined in core/interfaces.ts:23
  • tension: number
    +
  • Defined in core/interfaces.ts:14
  • +
  • Defined in core/interfaces.ts:44
  • +
  • Defined in core/interfaces.ts:4
  • +
  • Defined in core/interfaces.ts:11
  • +
  • Defined in core/interfaces.ts:9
  • +
  • Defined in core/math.ts:6