@automovie/engine 0.0.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/lib/IAutoMovieFormationPlacement.d.ts +4 -3
- package/lib/analysis/index.d.ts +5 -0
- package/lib/analysis/index.js +5 -0
- package/lib/analysis/index.js.map +1 -1
- package/lib/anthropometry/AutoMovieHandAnthropometry.d.ts +47 -0
- package/lib/anthropometry/AutoMovieHandAnthropometry.js +53 -0
- package/lib/anthropometry/AutoMovieHandAnthropometry.js.map +1 -0
- package/lib/anthropometry/index.d.ts +1 -0
- package/lib/anthropometry/index.js +18 -0
- package/lib/anthropometry/index.js.map +1 -0
- package/lib/architecture/appendBuiltRegionDefects.d.ts +1 -1
- package/lib/architecture/appendBuiltRegionDefects.js +3 -3
- package/lib/architecture/appendBuiltRegionDefects.js.map +1 -1
- package/lib/architecture/builtOutlineIsClosed.d.ts +1 -1
- package/lib/architecture/builtOutlineIsClosed.js +3 -3
- package/lib/architecture/builtOutlineIsClosed.js.map +1 -1
- package/{src/architecture/constants/PLANAR_EPSILON.ts → lib/architecture/constants/BUILT_PLANAR_EPSILON.d.ts} +1 -1
- package/lib/architecture/constants/{PLANAR_EPSILON.js → BUILT_PLANAR_EPSILON.js} +3 -3
- package/lib/architecture/constants/BUILT_PLANAR_EPSILON.js.map +1 -0
- package/lib/architecture/constants/index.d.ts +1 -1
- package/lib/architecture/constants/index.js +1 -1
- package/lib/architecture/constants/index.js.map +1 -1
- package/lib/architecture/index.d.ts +157 -117
- package/lib/architecture/index.js +171 -158
- package/lib/architecture/index.js.map +1 -1
- package/lib/cache/index.d.ts +9 -0
- package/lib/cache/index.js +26 -0
- package/lib/cache/index.js.map +1 -0
- package/lib/composition/AutoMovieComposition.d.ts +25 -6
- package/lib/composition/AutoMovieComposition.js +4 -3
- package/lib/composition/AutoMovieComposition.js.map +1 -1
- package/lib/composition/AutoMovieScheduleCut.d.ts +53 -0
- package/lib/composition/AutoMovieScheduleCut.js +99 -0
- package/lib/composition/AutoMovieScheduleCut.js.map +1 -0
- package/lib/composition/AutoMovieScheduleError.d.ts +79 -0
- package/lib/composition/AutoMovieScheduleError.js +51 -0
- package/lib/composition/AutoMovieScheduleError.js.map +1 -0
- package/lib/composition/AutoMovieSchedulePlace.d.ts +56 -0
- package/lib/composition/AutoMovieSchedulePlace.js +185 -0
- package/lib/composition/AutoMovieSchedulePlace.js.map +1 -0
- package/lib/composition/AutoMovieScheduleWalk.d.ts +121 -0
- package/lib/composition/AutoMovieScheduleWalk.js +161 -0
- package/lib/composition/AutoMovieScheduleWalk.js.map +1 -0
- package/lib/composition/IAutoMovieIntent.d.ts +9 -6
- package/lib/composition/index.d.ts +12 -7
- package/lib/composition/index.js +12 -2
- package/lib/composition/index.js.map +1 -1
- package/lib/composition/markAutoMovieContacts.d.ts +29 -0
- package/lib/composition/markAutoMovieContacts.js +69 -0
- package/lib/composition/markAutoMovieContacts.js.map +1 -0
- package/lib/composition/resolveAutoMovieContactEvents.d.ts +56 -7
- package/lib/composition/resolveAutoMovieContactEvents.js +89 -18
- package/lib/composition/resolveAutoMovieContactEvents.js.map +1 -1
- package/lib/composition/resolveAutoMovieMutualGoal.d.ts +45 -29
- package/lib/composition/resolveAutoMovieMutualGoal.js +123 -60
- package/lib/composition/resolveAutoMovieMutualGoal.js.map +1 -1
- package/lib/composition/resolveAutoMovieSchedule.d.ts +69 -11
- package/lib/composition/resolveAutoMovieSchedule.js +32 -103
- package/lib/composition/resolveAutoMovieSchedule.js.map +1 -1
- package/lib/constants/index.d.ts +2 -0
- package/lib/constants/index.js +2 -0
- package/lib/constants/index.js.map +1 -1
- package/lib/createAutoMovieGeometryActorReader.js +2 -1
- package/lib/createAutoMovieGeometryActorReader.js.map +1 -1
- package/lib/describeAutoMovieInstanceSetSubject.js +2 -5
- package/lib/describeAutoMovieInstanceSetSubject.js.map +1 -1
- package/lib/drawing/index.d.ts +12 -0
- package/lib/drawing/index.js +12 -0
- package/lib/drawing/index.js.map +1 -1
- package/lib/effectRuntime/index.d.ts +7 -0
- package/lib/effectRuntime/index.js +7 -0
- package/lib/effectRuntime/index.js.map +1 -1
- package/lib/film/compileAttach.js +2 -5
- package/lib/film/compileAttach.js.map +1 -1
- package/lib/film/compileLaunch.d.ts +2 -2
- package/lib/film/compileLaunch.js +4 -3
- package/lib/film/compileLaunch.js.map +1 -1
- package/lib/film/constants/index.d.ts +3 -0
- package/lib/film/constants/index.js +3 -0
- package/lib/film/constants/index.js.map +1 -1
- package/lib/film/index.d.ts +61 -6
- package/lib/film/index.js +61 -12
- package/lib/film/index.js.map +1 -1
- package/lib/film/propAnchorFrame.js +6 -9
- package/lib/film/propAnchorFrame.js.map +1 -1
- package/lib/film/stageScene.js +3 -10
- package/lib/film/stageScene.js.map +1 -1
- package/lib/film/staging/index.d.ts +11 -0
- package/lib/film/staging/index.js +28 -0
- package/lib/film/staging/index.js.map +1 -0
- package/lib/film/staging/lowerLightPlacement.js +4 -7
- package/lib/film/staging/lowerLightPlacement.js.map +1 -1
- package/lib/formationSlotPosition.d.ts +6 -1
- package/lib/formationSlotPosition.js +38 -3
- package/lib/formationSlotPosition.js.map +1 -1
- package/lib/geometry/IAutoMovieMark.d.ts +99 -0
- package/lib/geometry/IAutoMovieMark.js +3 -0
- package/lib/geometry/IAutoMovieMark.js.map +1 -0
- package/lib/geometry/IAutoMovieMeshDefect.d.ts +33 -0
- package/lib/geometry/IAutoMovieMeshDefect.js +3 -0
- package/lib/geometry/IAutoMovieMeshDefect.js.map +1 -0
- package/lib/geometry/constants/index.d.ts +2 -0
- package/lib/geometry/constants/index.js +2 -0
- package/lib/geometry/constants/index.js.map +1 -1
- package/lib/geometry/construction/AutoMovieConstructionAdmission.js +72 -10
- package/lib/geometry/construction/AutoMovieConstructionAdmission.js.map +1 -1
- package/lib/geometry/construction/AutoMovieConstructionBridgeRealize.d.ts +35 -0
- package/lib/geometry/construction/AutoMovieConstructionBridgeRealize.js +155 -0
- package/lib/geometry/construction/AutoMovieConstructionBridgeRealize.js.map +1 -0
- package/lib/geometry/construction/AutoMovieConstructionContinuationRealize.js +4 -0
- package/lib/geometry/construction/AutoMovieConstructionContinuationRealize.js.map +1 -1
- package/lib/geometry/construction/AutoMovieConstructionPortRealize.d.ts +1 -1
- package/lib/geometry/construction/AutoMovieConstructionPortRealize.js +38 -14
- package/lib/geometry/construction/AutoMovieConstructionPortRealize.js.map +1 -1
- package/lib/geometry/construction/AutoMovieConstructionSeeds.d.ts +6 -6
- package/lib/geometry/construction/AutoMovieConstructionSeeds.js +34 -11
- package/lib/geometry/construction/AutoMovieConstructionSeeds.js.map +1 -1
- package/lib/geometry/construction/AutoMovieConstructionSplitBand.d.ts +107 -2
- package/lib/geometry/construction/AutoMovieConstructionSplitBand.js +452 -16
- package/lib/geometry/construction/AutoMovieConstructionSplitBand.js.map +1 -1
- package/lib/geometry/construction/AutoMovieConstructionSplitRealize.js +262 -0
- package/lib/geometry/construction/AutoMovieConstructionSplitRealize.js.map +1 -1
- package/lib/geometry/construction/AutoMovieConstructionSplitSeam.d.ts +28 -2
- package/lib/geometry/construction/AutoMovieConstructionSplitSeam.js +51 -12
- package/lib/geometry/construction/AutoMovieConstructionSplitSeam.js.map +1 -1
- package/lib/geometry/construction/AutoMovieConstructionState.d.ts +11 -0
- package/lib/geometry/construction/AutoMovieConstructionState.js +5 -0
- package/lib/geometry/construction/AutoMovieConstructionState.js.map +1 -1
- package/lib/geometry/construction/AutoMovieLoftCapRead.js +3 -2
- package/lib/geometry/construction/AutoMovieLoftCapRead.js.map +1 -1
- package/lib/geometry/construction/AutoMovieLoftCapSource.js +21 -1
- package/lib/geometry/construction/AutoMovieLoftCapSource.js.map +1 -1
- package/lib/geometry/construction/AutoMovieLoftJet.js +7 -5
- package/lib/geometry/construction/AutoMovieLoftJet.js.map +1 -1
- package/lib/geometry/construction/AutoMovieLoftPoint.js +7 -4
- package/lib/geometry/construction/AutoMovieLoftPoint.js.map +1 -1
- package/lib/geometry/construction/AutoMovieLoftRelief.d.ts +25 -0
- package/lib/geometry/construction/AutoMovieLoftRelief.js +37 -0
- package/lib/geometry/construction/AutoMovieLoftRelief.js.map +1 -1
- package/lib/geometry/construction/AutoMovieLoftViewRead.js +29 -7
- package/lib/geometry/construction/AutoMovieLoftViewRead.js.map +1 -1
- package/lib/geometry/construction/AutoMovieLoftViewSource.js +4 -2
- package/lib/geometry/construction/AutoMovieLoftViewSource.js.map +1 -1
- package/lib/geometry/construction/AutoMovieNaturalSpline.d.ts +20 -0
- package/lib/geometry/construction/AutoMovieNaturalSpline.js +37 -0
- package/lib/geometry/construction/AutoMovieNaturalSpline.js.map +1 -1
- package/lib/geometry/construction/AutoMovieSolidBlendChain.d.ts +9 -1
- package/lib/geometry/construction/AutoMovieSolidBlendChain.js +13 -8
- package/lib/geometry/construction/AutoMovieSolidBlendChain.js.map +1 -1
- package/lib/geometry/construction/AutoMovieSolidBodyMerge.js +2 -0
- package/lib/geometry/construction/AutoMovieSolidBodyMerge.js.map +1 -1
- package/lib/geometry/construction/AutoMovieSolidClip.d.ts +15 -1
- package/lib/geometry/construction/AutoMovieSolidClip.js +306 -38
- package/lib/geometry/construction/AutoMovieSolidClip.js.map +1 -1
- package/lib/geometry/construction/AutoMovieSolidCycle.d.ts +20 -5
- package/lib/geometry/construction/AutoMovieSolidCycle.js +68 -16
- package/lib/geometry/construction/AutoMovieSolidCycle.js.map +1 -1
- package/lib/geometry/construction/AutoMovieSolidIntersectionWalk.js +89 -41
- package/lib/geometry/construction/AutoMovieSolidIntersectionWalk.js.map +1 -1
- package/lib/geometry/construction/AutoMovieSolidJoin.d.ts +13 -0
- package/lib/geometry/construction/AutoMovieSolidJoin.js +23 -2
- package/lib/geometry/construction/AutoMovieSolidJoin.js.map +1 -1
- package/lib/geometry/construction/AutoMovieSolidMeshConstraints.d.ts +1 -1
- package/lib/geometry/construction/AutoMovieSolidMeshConstraints.js +28 -3
- package/lib/geometry/construction/AutoMovieSolidMeshConstraints.js.map +1 -1
- package/lib/geometry/construction/AutoMovieSolidMeshLoop.d.ts +4 -4
- package/lib/geometry/construction/AutoMovieSolidMeshLoop.js +42 -4
- package/lib/geometry/construction/AutoMovieSolidMeshLoop.js.map +1 -1
- package/lib/geometry/construction/AutoMovieSolidMeshPlan.d.ts +2 -1
- package/lib/geometry/construction/AutoMovieSolidMeshPlan.js +57 -25
- package/lib/geometry/construction/AutoMovieSolidMeshPlan.js.map +1 -1
- package/lib/geometry/construction/AutoMovieSolidRail.d.ts +40 -0
- package/lib/geometry/construction/AutoMovieSolidRail.js +101 -31
- package/lib/geometry/construction/AutoMovieSolidRail.js.map +1 -1
- package/lib/geometry/construction/AutoMovieSolidRailSolve.d.ts +7 -3
- package/lib/geometry/construction/AutoMovieSolidRailSolve.js +115 -18
- package/lib/geometry/construction/AutoMovieSolidRailSolve.js.map +1 -1
- package/lib/geometry/construction/AutoMovieViewLoft.js +9 -0
- package/lib/geometry/construction/AutoMovieViewLoft.js.map +1 -1
- package/lib/geometry/construction/IAutoMovieConstructionCurve.d.ts +37 -0
- package/lib/geometry/construction/IAutoMovieConstructionCurve.js +3 -0
- package/lib/geometry/construction/IAutoMovieConstructionCurve.js.map +1 -0
- package/lib/geometry/construction/IAutoMovieLoftChain.d.ts +6 -0
- package/lib/geometry/construction/IAutoMovieLoftRelief.d.ts +10 -0
- package/lib/geometry/construction/IAutoMovieViewPart.d.ts +9 -1
- package/lib/geometry/construction/faceAutoMovieSolidMesh.d.ts +3 -3
- package/lib/geometry/construction/faceAutoMovieSolidMesh.js +65 -16
- package/lib/geometry/construction/faceAutoMovieSolidMesh.js.map +1 -1
- package/lib/geometry/construction/fairAutoMovieSolidMesh.d.ts +45 -0
- package/lib/geometry/construction/fairAutoMovieSolidMesh.js +270 -0
- package/lib/geometry/construction/fairAutoMovieSolidMesh.js.map +1 -0
- package/lib/geometry/construction/gridAutoMovieSolidMesh.d.ts +18 -1
- package/lib/geometry/construction/gridAutoMovieSolidMesh.js +139 -7
- package/lib/geometry/construction/gridAutoMovieSolidMesh.js.map +1 -1
- package/lib/geometry/construction/index.d.ts +82 -2
- package/lib/geometry/construction/index.js +82 -2
- package/lib/geometry/construction/index.js.map +1 -1
- package/lib/geometry/construction/legalizeAutoMovieSolidMesh.d.ts +14 -1
- package/lib/geometry/construction/legalizeAutoMovieSolidMesh.js +26 -4
- package/lib/geometry/construction/legalizeAutoMovieSolidMesh.js.map +1 -1
- package/lib/geometry/construction/markAutoMovieConstructionCurves.d.ts +33 -0
- package/lib/geometry/construction/markAutoMovieConstructionCurves.js +51 -0
- package/lib/geometry/construction/markAutoMovieConstructionCurves.js.map +1 -0
- package/lib/geometry/construction/orientAutoMovieSolidChart.d.ts +1 -1
- package/lib/geometry/construction/orientAutoMovieSolidChart.js +28 -4
- package/lib/geometry/construction/orientAutoMovieSolidChart.js.map +1 -1
- package/lib/geometry/construction/probeAutoMovieSolidMesh.d.ts +11 -5
- package/lib/geometry/construction/probeAutoMovieSolidMesh.js +41 -28
- package/lib/geometry/construction/probeAutoMovieSolidMesh.js.map +1 -1
- package/lib/geometry/construction/realizeAutoMovieConstruction.js +45 -1
- package/lib/geometry/construction/realizeAutoMovieConstruction.js.map +1 -1
- package/lib/geometry/construction/sampleAutoMovieConstructionCurves.d.ts +31 -0
- package/lib/geometry/construction/sampleAutoMovieConstructionCurves.js +234 -0
- package/lib/geometry/construction/sampleAutoMovieConstructionCurves.js.map +1 -0
- package/lib/geometry/curve/index.d.ts +48 -25
- package/lib/geometry/curve/index.js +48 -25
- package/lib/geometry/curve/index.js.map +1 -1
- package/lib/geometry/extract/index.d.ts +0 -1
- package/lib/geometry/extract/index.js +0 -1
- package/lib/geometry/extract/index.js.map +1 -1
- package/lib/geometry/index.d.ts +87 -53
- package/lib/geometry/index.js +87 -50
- package/lib/geometry/index.js.map +1 -1
- package/lib/geometry/markAutoMovieMeshClearance.d.ts +32 -0
- package/lib/geometry/markAutoMovieMeshClearance.js +53 -0
- package/lib/geometry/markAutoMovieMeshClearance.js.map +1 -0
- package/lib/geometry/measureAutoMovieMeshDefects.d.ts +31 -0
- package/lib/geometry/measureAutoMovieMeshDefects.js +244 -0
- package/lib/geometry/measureAutoMovieMeshDefects.js.map +1 -0
- package/lib/geometry/sweep/index.d.ts +54 -15
- package/lib/geometry/sweep/index.js +54 -1
- package/lib/geometry/sweep/index.js.map +1 -1
- package/lib/index.d.ts +41 -450
- package/lib/index.js +41 -660
- package/lib/index.js.map +1 -1
- package/lib/kinematics/AutoMovieHumanoidDigitSurfaces.d.ts +36 -0
- package/lib/kinematics/AutoMovieHumanoidDigitSurfaces.js +67 -0
- package/lib/kinematics/AutoMovieHumanoidDigitSurfaces.js.map +1 -0
- package/lib/kinematics/AutoMovieHumanoidSurfaceExtents.d.ts +28 -0
- package/lib/kinematics/AutoMovieHumanoidSurfaceExtents.js +52 -0
- package/lib/kinematics/AutoMovieHumanoidSurfaceExtents.js.map +1 -0
- package/lib/kinematics/AutoMovieHumanoidSurfaceRays.d.ts +55 -0
- package/lib/kinematics/AutoMovieHumanoidSurfaceRays.js +191 -0
- package/lib/kinematics/AutoMovieHumanoidSurfaceRays.js.map +1 -0
- package/lib/kinematics/AutoMovieHumanoidSurfaceRegions.d.ts +49 -0
- package/lib/kinematics/AutoMovieHumanoidSurfaceRegions.js +147 -0
- package/lib/kinematics/AutoMovieHumanoidSurfaceRegions.js.map +1 -0
- package/lib/kinematics/IAutoMovieHingedArticulation.d.ts +17 -3
- package/lib/kinematics/IAutoMoviePoseRig.d.ts +31 -0
- package/lib/kinematics/IAutoMoviePoseRig.js +3 -0
- package/lib/kinematics/IAutoMoviePoseRig.js.map +1 -0
- package/lib/kinematics/IAutoMovieSwivelNear.d.ts +25 -0
- package/lib/kinematics/IAutoMovieSwivelNear.js +3 -0
- package/lib/kinematics/IAutoMovieSwivelNear.js.map +1 -0
- package/lib/kinematics/IAutoMovieSwivelSeed.d.ts +18 -0
- package/lib/kinematics/IAutoMovieSwivelSeed.js +3 -0
- package/lib/kinematics/IAutoMovieSwivelSeed.js.map +1 -0
- package/lib/kinematics/alternateRigJointAngles.d.ts +27 -0
- package/lib/kinematics/alternateRigJointAngles.js +34 -0
- package/lib/kinematics/alternateRigJointAngles.js.map +1 -0
- package/lib/kinematics/boxExcludedSwivels.d.ts +64 -0
- package/lib/kinematics/boxExcludedSwivels.js +187 -0
- package/lib/kinematics/boxExcludedSwivels.js.map +1 -0
- package/lib/kinematics/constants/HUMANOID_JOINT_AXES.d.ts +16 -2
- package/lib/kinematics/constants/HUMANOID_JOINT_AXES.js +19 -4
- package/lib/kinematics/constants/HUMANOID_JOINT_AXES.js.map +1 -1
- package/lib/kinematics/curlChainUntilContact.d.ts +16 -0
- package/lib/kinematics/curlChainUntilContact.js +45 -5
- package/lib/kinematics/curlChainUntilContact.js.map +1 -1
- package/lib/kinematics/decomposeJointRotation.d.ts +5 -2
- package/lib/kinematics/decomposeJointRotation.js +10 -131
- package/lib/kinematics/decomposeJointRotation.js.map +1 -1
- package/lib/kinematics/decomposeJointRotationOnBasis.d.ts +36 -0
- package/lib/kinematics/decomposeJointRotationOnBasis.js +228 -0
- package/lib/kinematics/decomposeJointRotationOnBasis.js.map +1 -0
- package/lib/kinematics/fitDigitDescent.d.ts +66 -0
- package/lib/kinematics/fitDigitDescent.js +142 -0
- package/lib/kinematics/fitDigitDescent.js.map +1 -0
- package/lib/kinematics/fitDigitToTarget.d.ts +125 -0
- package/lib/kinematics/fitDigitToTarget.js +251 -0
- package/lib/kinematics/fitDigitToTarget.js.map +1 -0
- package/lib/kinematics/hingedArmArticulation.d.ts +55 -7
- package/lib/kinematics/hingedArmArticulation.js +273 -84
- package/lib/kinematics/hingedArmArticulation.js.map +1 -1
- package/lib/kinematics/hingedArmSwivel.d.ts +141 -0
- package/lib/kinematics/hingedArmSwivel.js +196 -0
- package/lib/kinematics/hingedArmSwivel.js.map +1 -0
- package/lib/kinematics/index.d.ts +30 -7
- package/lib/kinematics/index.js +30 -5
- package/lib/kinematics/index.js.map +1 -1
- package/lib/kinematics/jointRomOvershoot.d.ts +13 -9
- package/lib/kinematics/jointRomOvershoot.js +21 -17
- package/lib/kinematics/jointRomOvershoot.js.map +1 -1
- package/lib/kinematics/jointToQuaternion.d.ts +2 -2
- package/lib/kinematics/jointToQuaternion.js +4 -19
- package/lib/kinematics/jointToQuaternion.js.map +1 -1
- package/lib/kinematics/jointToQuaternionOnBasis.d.ts +34 -0
- package/lib/kinematics/jointToQuaternionOnBasis.js +50 -0
- package/lib/kinematics/jointToQuaternionOnBasis.js.map +1 -0
- package/lib/kinematics/markAutoMovieBalance.d.ts +32 -0
- package/lib/kinematics/markAutoMovieBalance.js +65 -0
- package/lib/kinematics/markAutoMovieBalance.js.map +1 -0
- package/lib/kinematics/markAutoMovieRomOvershoot.d.ts +25 -0
- package/lib/kinematics/markAutoMovieRomOvershoot.js +43 -0
- package/lib/kinematics/markAutoMovieRomOvershoot.js.map +1 -0
- package/lib/kinematics/measureAutoMovieHumanoidBody.js +16 -5
- package/lib/kinematics/measureAutoMovieHumanoidBody.js.map +1 -1
- package/lib/kinematics/normalizeJointAxes.d.ts +15 -7
- package/lib/kinematics/normalizeJointAxes.js +52 -12
- package/lib/kinematics/normalizeJointAxes.js.map +1 -1
- package/lib/kinematics/poseJointCodec.d.ts +71 -0
- package/lib/kinematics/poseJointCodec.js +70 -0
- package/lib/kinematics/poseJointCodec.js.map +1 -0
- package/lib/kinematics/resolveAutoMovieBalanceOutcome.d.ts +112 -0
- package/lib/kinematics/resolveAutoMovieBalanceOutcome.js +168 -0
- package/lib/kinematics/resolveAutoMovieBalanceOutcome.js.map +1 -0
- package/lib/kinematics/resolveAutoMovieCenterOfMass.d.ts +29 -4
- package/lib/kinematics/resolveAutoMovieCenterOfMass.js +42 -8
- package/lib/kinematics/resolveAutoMovieCenterOfMass.js.map +1 -1
- package/lib/kinematics/resolveAutoMovieHumanoidRingModules.d.ts +75 -0
- package/lib/kinematics/resolveAutoMovieHumanoidRingModules.js +228 -0
- package/lib/kinematics/resolveAutoMovieHumanoidRingModules.js.map +1 -0
- package/lib/kinematics/resolveAutoMovieHumanoidSurfaces.d.ts +90 -10
- package/lib/kinematics/resolveAutoMovieHumanoidSurfaces.js +183 -258
- package/lib/kinematics/resolveAutoMovieHumanoidSurfaces.js.map +1 -1
- package/lib/kinematics/resolveAutoMovieMomentum.d.ts +112 -0
- package/lib/kinematics/resolveAutoMovieMomentum.js +153 -0
- package/lib/kinematics/resolveAutoMovieMomentum.js.map +1 -0
- package/lib/kinematics/swingTwistBasis.d.ts +108 -0
- package/lib/kinematics/swingTwistBasis.js +116 -0
- package/lib/kinematics/swingTwistBasis.js.map +1 -0
- package/lib/kinematics/swingTwistExcludedSwivels.d.ts +65 -0
- package/lib/kinematics/swingTwistExcludedSwivels.js +138 -0
- package/lib/kinematics/swingTwistExcludedSwivels.js.map +1 -0
- package/lib/kinematics/swingTwistRange.d.ts +246 -0
- package/lib/kinematics/swingTwistRange.js +322 -0
- package/lib/kinematics/swingTwistRange.js.map +1 -0
- package/lib/kinematics/swingTwistRegion.d.ts +50 -0
- package/lib/kinematics/swingTwistRegion.js +212 -0
- package/lib/kinematics/swingTwistRegion.js.map +1 -0
- package/lib/kinematics/swivelArcs.d.ts +166 -0
- package/lib/kinematics/swivelArcs.js +200 -0
- package/lib/kinematics/swivelArcs.js.map +1 -0
- package/lib/math/Quaternion.d.ts +29 -2
- package/lib/math/Quaternion.js +33 -2
- package/lib/math/Quaternion.js.map +1 -1
- package/lib/math/Transform.d.ts +50 -0
- package/lib/math/Transform.js +58 -0
- package/lib/math/Transform.js.map +1 -0
- package/lib/math/assignAutoMovieMinimumCost.d.ts +18 -0
- package/lib/math/assignAutoMovieMinimumCost.js +86 -0
- package/lib/math/assignAutoMovieMinimumCost.js.map +1 -0
- package/lib/math/bracketedBisection.d.ts +33 -0
- package/lib/math/bracketedBisection.js +52 -0
- package/lib/math/bracketedBisection.js.map +1 -0
- package/lib/math/bracketedRoot.d.ts +32 -0
- package/lib/math/bracketedRoot.js +76 -0
- package/lib/math/bracketedRoot.js.map +1 -0
- package/lib/math/constants/index.d.ts +1 -0
- package/lib/math/constants/index.js +18 -0
- package/lib/math/constants/index.js.map +1 -0
- package/lib/math/index.d.ts +64 -5
- package/lib/math/index.js +64 -5
- package/lib/math/index.js.map +1 -1
- package/lib/math/nearestAngleAlias.d.ts +27 -0
- package/lib/math/nearestAngleAlias.js +44 -0
- package/lib/math/nearestAngleAlias.js.map +1 -0
- package/lib/math/solveAutoMovieHalfPlaneProgram.d.ts +68 -0
- package/lib/math/solveAutoMovieHalfPlaneProgram.js +199 -0
- package/lib/math/solveAutoMovieHalfPlaneProgram.js.map +1 -0
- package/lib/math/tetrahedralizeAutoMovieDelaunay.d.ts +82 -0
- package/lib/math/tetrahedralizeAutoMovieDelaunay.js +187 -0
- package/lib/math/tetrahedralizeAutoMovieDelaunay.js.map +1 -0
- package/lib/measureAutoMovieGeometryReach.js +2 -4
- package/lib/measureAutoMovieGeometryReach.js.map +1 -1
- package/lib/motion/AirborneTakeoffLinear.d.ts +22 -0
- package/lib/motion/AirborneTakeoffLinear.js +58 -0
- package/lib/motion/AirborneTakeoffLinear.js.map +1 -0
- package/lib/motion/IAutoMovieCrowdAgent.d.ts +113 -0
- package/lib/motion/IAutoMovieCrowdAgent.js +3 -0
- package/lib/motion/IAutoMovieCrowdAgent.js.map +1 -0
- package/lib/motion/IAutoMovieSeededChainFit.d.ts +32 -0
- package/lib/motion/IAutoMovieSeededChainFit.js +3 -0
- package/lib/motion/IAutoMovieSeededChainFit.js.map +1 -0
- package/lib/motion/IAutoMovieSolvedChainPlant.d.ts +20 -0
- package/lib/motion/IFitChainToTargetProps.d.ts +59 -0
- package/lib/motion/MotionTrajectoryStepper.d.ts +100 -0
- package/lib/motion/MotionTrajectoryStepper.js +357 -0
- package/lib/motion/MotionTrajectoryStepper.js.map +1 -0
- package/lib/motion/basisOf.d.ts +18 -0
- package/lib/motion/basisOf.js +25 -0
- package/lib/motion/basisOf.js.map +1 -0
- package/lib/motion/carriedAcceleration.d.ts +43 -0
- package/lib/motion/carriedAcceleration.js +55 -0
- package/lib/motion/carriedAcceleration.js.map +1 -0
- package/lib/motion/carriedRate.d.ts +48 -0
- package/lib/motion/carriedRate.js +60 -0
- package/lib/motion/carriedRate.js.map +1 -0
- package/lib/motion/constants/PLANT_RESIDUAL_EPSILON.d.ts +10 -0
- package/lib/motion/constants/PLANT_RESIDUAL_EPSILON.js +14 -0
- package/lib/motion/constants/PLANT_RESIDUAL_EPSILON.js.map +1 -0
- package/lib/motion/constants/index.d.ts +1 -0
- package/lib/motion/constants/index.js +1 -0
- package/lib/motion/constants/index.js.map +1 -1
- package/lib/motion/fitChainBend.d.ts +23 -0
- package/lib/motion/fitChainBend.js +293 -0
- package/lib/motion/fitChainBend.js.map +1 -0
- package/lib/motion/fitChainToTarget.d.ts +11 -13
- package/lib/motion/fitChainToTarget.js +12 -283
- package/lib/motion/fitChainToTarget.js.map +1 -1
- package/lib/motion/fitHingedChainCandidate.d.ts +16 -4
- package/lib/motion/fitHingedChainCandidate.js +186 -76
- package/lib/motion/fitHingedChainCandidate.js.map +1 -1
- package/lib/motion/fitHingedRotationError.d.ts +31 -0
- package/lib/motion/fitHingedRotationError.js +107 -0
- package/lib/motion/fitHingedRotationError.js.map +1 -0
- package/lib/motion/fitSeededChainToTarget.d.ts +20 -0
- package/lib/motion/fitSeededChainToTarget.js +32 -0
- package/lib/motion/fitSeededChainToTarget.js.map +1 -0
- package/lib/motion/gaitMotion.js +7 -13
- package/lib/motion/gaitMotion.js.map +1 -1
- package/lib/motion/gestureMotion.js +2 -5
- package/lib/motion/gestureMotion.js.map +1 -1
- package/lib/motion/importedNodeClipToAutoMovieMotion.js +6 -9
- package/lib/motion/importedNodeClipToAutoMovieMotion.js.map +1 -1
- package/lib/motion/index.d.ts +40 -9
- package/lib/motion/index.js +40 -12
- package/lib/motion/index.js.map +1 -1
- package/lib/motion/inertializeOffset.d.ts +15 -2
- package/lib/motion/inertializeOffset.js +16 -3
- package/lib/motion/inertializeOffset.js.map +1 -1
- package/lib/motion/inertializePose.d.ts +36 -13
- package/lib/motion/inertializePose.js +122 -43
- package/lib/motion/inertializePose.js.map +1 -1
- package/lib/motion/integrateAirborneRotation.d.ts +151 -0
- package/lib/motion/integrateAirborneRotation.js +204 -0
- package/lib/motion/integrateAirborneRotation.js.map +1 -0
- package/lib/motion/integrateMotionTrajectory.d.ts +117 -0
- package/lib/motion/integrateMotionTrajectory.js +156 -0
- package/lib/motion/integrateMotionTrajectory.js.map +1 -0
- package/lib/motion/orientChainEffector.d.ts +1 -1
- package/lib/motion/orientChainEffector.js +15 -7
- package/lib/motion/orientChainEffector.js.map +1 -1
- package/lib/motion/resolveHydrodynamicForce.d.ts +85 -0
- package/lib/motion/resolveHydrodynamicForce.js +100 -0
- package/lib/motion/resolveHydrodynamicForce.js.map +1 -0
- package/lib/motion/sampleMotion.js +2 -5
- package/lib/motion/sampleMotion.js.map +1 -1
- package/lib/motion/samplePoseVelocity.d.ts +76 -13
- package/lib/motion/samplePoseVelocity.js +126 -38
- package/lib/motion/samplePoseVelocity.js.map +1 -1
- package/lib/motion/smoothMinimum.d.ts +29 -0
- package/lib/motion/smoothMinimum.js +40 -0
- package/lib/motion/smoothMinimum.js.map +1 -0
- package/lib/motion/solveAirborneTakeoff.d.ts +150 -0
- package/lib/motion/solveAirborneTakeoff.js +324 -0
- package/lib/motion/solveAirborneTakeoff.js.map +1 -0
- package/lib/motion/solveDistalTwist.d.ts +62 -0
- package/lib/motion/solveDistalTwist.js +152 -0
- package/lib/motion/solveDistalTwist.js.map +1 -0
- package/lib/motion/speedProfile.d.ts +175 -0
- package/lib/motion/speedProfile.js +261 -0
- package/lib/motion/speedProfile.js.map +1 -0
- package/lib/motion/splitDistalTwist.d.ts +12 -17
- package/lib/motion/splitDistalTwist.js +37 -40
- package/lib/motion/splitDistalTwist.js.map +1 -1
- package/lib/motion/steerAutoMovieCrowd.d.ts +74 -0
- package/lib/motion/steerAutoMovieCrowd.js +249 -0
- package/lib/motion/steerAutoMovieCrowd.js.map +1 -0
- package/lib/motion/steerAutoMovieCrowdGeometry.d.ts +241 -0
- package/lib/motion/steerAutoMovieCrowdGeometry.js +470 -0
- package/lib/motion/steerAutoMovieCrowdGeometry.js.map +1 -0
- package/lib/perform/index.d.ts +10 -0
- package/lib/perform/index.js +10 -0
- package/lib/perform/index.js.map +1 -1
- package/lib/physics/AutoMovieAir.d.ts +21 -0
- package/lib/physics/AutoMovieAir.js +26 -0
- package/lib/physics/AutoMovieAir.js.map +1 -0
- package/lib/physics/AutoMovieGravity.d.ts +22 -0
- package/lib/physics/AutoMovieGravity.js +30 -0
- package/lib/physics/AutoMovieGravity.js.map +1 -0
- package/lib/physics/IAutoMovieHit.d.ts +11 -7
- package/lib/physics/IAutoMovieProjectile.d.ts +65 -6
- package/lib/physics/IAutoMovieProjectileState.d.ts +6 -4
- package/lib/physics/admitMotionGeometry.js +12 -0
- package/lib/physics/admitMotionGeometry.js.map +1 -1
- package/lib/physics/bindPhysicalWorld.js +16 -4
- package/lib/physics/bindPhysicalWorld.js.map +1 -1
- package/lib/physics/combinePhysicalMassProperties.d.ts +2 -1
- package/lib/physics/combinePhysicalMassProperties.js +8 -90
- package/lib/physics/combinePhysicalMassProperties.js.map +1 -1
- package/lib/physics/deriveCenterOfMass.js +2 -5
- package/lib/physics/deriveCenterOfMass.js.map +1 -1
- package/lib/physics/derivePhysicalProfile.js +7 -5
- package/lib/physics/derivePhysicalProfile.js.map +1 -1
- package/lib/physics/index.d.ts +155 -2
- package/lib/physics/index.js +155 -2
- package/lib/physics/index.js.map +1 -1
- package/lib/physics/markAutoMovieSkeleton.d.ts +33 -0
- package/lib/physics/markAutoMovieSkeleton.js +62 -0
- package/lib/physics/markAutoMovieSkeleton.js.map +1 -0
- package/lib/physics/physicalHullErode.d.ts +25 -0
- package/lib/physics/physicalHullErode.js +54 -0
- package/lib/physics/physicalHullErode.js.map +1 -0
- package/lib/physics/physicalHullFaces.d.ts +56 -0
- package/lib/physics/physicalHullFaces.js +151 -0
- package/lib/physics/physicalHullFaces.js.map +1 -0
- package/lib/physics/physicalHullMass.d.ts +32 -0
- package/lib/physics/physicalHullMass.js +80 -0
- package/lib/physics/physicalHullMass.js.map +1 -0
- package/lib/physics/physicalHullNearest.d.ts +37 -0
- package/lib/physics/physicalHullNearest.js +178 -0
- package/lib/physics/physicalHullNearest.js.map +1 -0
- package/lib/physics/physicalHullSegment.d.ts +34 -0
- package/lib/physics/physicalHullSegment.js +276 -0
- package/lib/physics/physicalHullSegment.js.map +1 -0
- package/lib/physics/physicalInertiaTensor.d.ts +28 -0
- package/lib/physics/physicalInertiaTensor.js +58 -0
- package/lib/physics/physicalInertiaTensor.js.map +1 -0
- package/lib/physics/physicalNativeShape.d.ts +1 -1
- package/lib/physics/physicalNativeShape.js +15 -4
- package/lib/physics/physicalNativeShape.js.map +1 -1
- package/lib/physics/physicalPrincipalAxes.d.ts +28 -0
- package/lib/physics/physicalPrincipalAxes.js +96 -0
- package/lib/physics/physicalPrincipalAxes.js.map +1 -0
- package/lib/physics/physicalShapeBounds.d.ts +2 -1
- package/lib/physics/physicalShapeBounds.js +26 -2
- package/lib/physics/physicalShapeBounds.js.map +1 -1
- package/lib/physics/physicalShapeNearest.d.ts +70 -0
- package/lib/physics/physicalShapeNearest.js +201 -0
- package/lib/physics/physicalShapeNearest.js.map +1 -0
- package/lib/physics/physicalShapeNormal.d.ts +26 -0
- package/lib/physics/physicalShapeNormal.js +70 -0
- package/lib/physics/physicalShapeNormal.js.map +1 -0
- package/lib/physics/physicalShapePairDistance.d.ts +32 -0
- package/lib/physics/physicalShapePairDistance.js +124 -0
- package/lib/physics/physicalShapePairDistance.js.map +1 -0
- package/lib/physics/physicalShapeSegmentDistance.d.ts +16 -20
- package/lib/physics/physicalShapeSegmentDistance.js +18 -70
- package/lib/physics/physicalShapeSegmentDistance.js.map +1 -1
- package/lib/physics/physicalShapeSpan.d.ts +21 -0
- package/lib/physics/physicalShapeSpan.js +55 -0
- package/lib/physics/physicalShapeSpan.js.map +1 -0
- package/lib/physics/physicalShapeSurfaceAnchor.d.ts +1 -1
- package/lib/physics/physicalShapeSurfaceAnchor.js +24 -5
- package/lib/physics/physicalShapeSurfaceAnchor.js.map +1 -1
- package/lib/physics/projectileAt.d.ts +14 -12
- package/lib/physics/projectileAt.js +46 -16
- package/lib/physics/projectileAt.js.map +1 -1
- package/lib/physics/projectileContinue.d.ts +114 -0
- package/lib/physics/projectileContinue.js +189 -0
- package/lib/physics/projectileContinue.js.map +1 -0
- package/lib/physics/projectileDragFlight.d.ts +72 -0
- package/lib/physics/projectileDragFlight.js +166 -0
- package/lib/physics/projectileDragFlight.js.map +1 -0
- package/lib/physics/projectileFirstContact.d.ts +105 -0
- package/lib/physics/projectileFirstContact.js +174 -0
- package/lib/physics/projectileFirstContact.js.map +1 -0
- package/lib/physics/projectileTrajectory.js +3 -2
- package/lib/physics/projectileTrajectory.js.map +1 -1
- package/lib/physics/solveBallisticLaunch.js +2 -1
- package/lib/physics/solveBallisticLaunch.js.map +1 -1
- package/lib/physics/solveMovingLaunch.js +2 -1
- package/lib/physics/solveMovingLaunch.js.map +1 -1
- package/lib/physics/validatePhysicalProfile.js +18 -1
- package/lib/physics/validatePhysicalProfile.js.map +1 -1
- package/lib/populationRuntime/index.d.ts +6 -0
- package/lib/populationRuntime/index.js +6 -0
- package/lib/populationRuntime/index.js.map +1 -1
- package/lib/populationRuntime/materializeCompiledFormation.js +2 -5
- package/lib/populationRuntime/materializeCompiledFormation.js.map +1 -1
- package/lib/random/index.d.ts +1 -1
- package/lib/random/index.js +1 -0
- package/lib/random/index.js.map +1 -1
- package/lib/render/index.d.ts +20 -11
- package/lib/render/index.js +20 -11
- package/lib/render/index.js.map +1 -1
- package/lib/resolve/index.d.ts +7 -2
- package/lib/resolve/index.js +7 -5
- package/lib/resolve/index.js.map +1 -1
- package/lib/resolve/lowerSkeletonNodes.js +3 -10
- package/lib/resolve/lowerSkeletonNodes.js.map +1 -1
- package/lib/rom/clampJointRom.d.ts +11 -3
- package/lib/rom/clampJointRom.js +43 -3
- package/lib/rom/clampJointRom.js.map +1 -1
- package/lib/rom/clampJointToSkeleton.d.ts +25 -2
- package/lib/rom/clampJointToSkeleton.js +39 -8
- package/lib/rom/clampJointToSkeleton.js.map +1 -1
- package/lib/rom/constants/ANKLE_DORSIFLEXION.d.ts +18 -0
- package/lib/rom/constants/ANKLE_DORSIFLEXION.js +22 -0
- package/lib/rom/constants/ANKLE_DORSIFLEXION.js.map +1 -0
- package/lib/rom/constants/DEFAULT_HUMANOID_ROM.d.ts +28 -0
- package/lib/rom/constants/DEFAULT_HUMANOID_ROM.js +129 -39
- package/lib/rom/constants/DEFAULT_HUMANOID_ROM.js.map +1 -1
- package/lib/rom/constants/ROM_TOLERANCE.d.ts +8 -0
- package/lib/rom/constants/ROM_TOLERANCE.js +12 -0
- package/lib/rom/constants/ROM_TOLERANCE.js.map +1 -0
- package/lib/rom/constants/index.d.ts +2 -0
- package/lib/rom/constants/index.js +2 -0
- package/lib/rom/constants/index.js.map +1 -1
- package/lib/rom/index.d.ts +1 -0
- package/lib/rom/index.js +1 -0
- package/lib/rom/index.js.map +1 -1
- package/lib/rom/scanJointRom.d.ts +62 -0
- package/lib/rom/scanJointRom.js +117 -0
- package/lib/rom/scanJointRom.js.map +1 -0
- package/lib/rom/validateJointRom.d.ts +4 -2
- package/lib/rom/validateJointRom.js +23 -45
- package/lib/rom/validateJointRom.js.map +1 -1
- package/lib/service/index.d.ts +9 -0
- package/lib/service/index.js +9 -0
- package/lib/service/index.js.map +1 -1
- package/lib/soft/IAutoMovieSoftBodyBoundarySample.d.ts +2 -0
- package/lib/soft/IAutoMovieSoftBodyObserver.d.ts +30 -0
- package/lib/soft/IAutoMovieSoftBodyObserver.js +3 -0
- package/lib/soft/IAutoMovieSoftBodyObserver.js.map +1 -0
- package/lib/soft/applySoftBodyFriction.d.ts +34 -0
- package/lib/soft/applySoftBodyFriction.js +52 -0
- package/lib/soft/applySoftBodyFriction.js.map +1 -0
- package/lib/soft/index.d.ts +22 -0
- package/lib/soft/index.js +22 -0
- package/lib/soft/index.js.map +1 -1
- package/lib/soft/projectSoftCordSelfContact.d.ts +53 -0
- package/lib/soft/projectSoftCordSelfContact.js +172 -0
- package/lib/soft/projectSoftCordSelfContact.js.map +1 -0
- package/lib/soft/simulateSoftBodyCore.d.ts +6 -3
- package/lib/soft/simulateSoftBodyCore.js +108 -16
- package/lib/soft/simulateSoftBodyCore.js.map +1 -1
- package/lib/soft/simulateSoftBodyWithBoundaries.d.ts +3 -2
- package/lib/soft/simulateSoftBodyWithBoundaries.js +10 -3
- package/lib/soft/simulateSoftBodyWithBoundaries.js.map +1 -1
- package/lib/soft/softBodyBudget.js +7 -0
- package/lib/soft/softBodyBudget.js.map +1 -1
- package/lib/soft/softBodyHeldLoads.d.ts +34 -0
- package/lib/soft/softBodyHeldLoads.js +69 -0
- package/lib/soft/softBodyHeldLoads.js.map +1 -0
- package/lib/soft/solveSoftBodyCompliantSweep.d.ts +48 -0
- package/lib/soft/solveSoftBodyCompliantSweep.js +86 -0
- package/lib/soft/solveSoftBodyCompliantSweep.js.map +1 -0
- package/lib/soft/validateSoftAnchors.d.ts +24 -0
- package/lib/soft/validateSoftAnchors.js +74 -0
- package/lib/soft/validateSoftAnchors.js.map +1 -0
- package/lib/soft/validateSoftBodyDomain.js +6 -48
- package/lib/soft/validateSoftBodyDomain.js.map +1 -1
- package/lib/soft/validateSoftBounded.d.ts +20 -0
- package/lib/soft/validateSoftBounded.js +27 -0
- package/lib/soft/validateSoftBounded.js.map +1 -0
- package/lib/soft/validateSoftCompliance.d.ts +30 -0
- package/lib/soft/validateSoftCompliance.js +54 -0
- package/lib/soft/validateSoftCompliance.js.map +1 -0
- package/lib/sound/index.d.ts +2 -0
- package/lib/sound/index.js +2 -0
- package/lib/sound/index.js.map +1 -1
- package/lib/text/index.d.ts +1 -0
- package/lib/text/index.js +1 -0
- package/lib/text/index.js.map +1 -1
- package/lib/validation/AffordanceArticulation.d.ts +69 -0
- package/lib/validation/AffordanceArticulation.js +142 -0
- package/lib/validation/AffordanceArticulation.js.map +1 -0
- package/lib/validation/affordanceFollowedTravel.d.ts +19 -0
- package/lib/validation/affordanceFollowedTravel.js +43 -0
- package/lib/validation/affordanceFollowedTravel.js.map +1 -0
- package/lib/validation/affordanceLeadingTravel.d.ts +21 -0
- package/lib/validation/affordanceLeadingTravel.js +99 -0
- package/lib/validation/affordanceLeadingTravel.js.map +1 -0
- package/lib/validation/affordanceTravelRange.d.ts +21 -0
- package/lib/validation/affordanceTravelRange.js +39 -0
- package/lib/validation/affordanceTravelRange.js.map +1 -0
- package/lib/validation/appendShotEventsArtifact.js +12 -0
- package/lib/validation/appendShotEventsArtifact.js.map +1 -1
- package/lib/validation/constants/index.d.ts +3 -3
- package/lib/validation/constants/index.js +3 -3
- package/lib/validation/constants/index.js.map +1 -1
- package/lib/validation/detectFreeFall.js +2 -1
- package/lib/validation/detectFreeFall.js.map +1 -1
- package/lib/validation/index.d.ts +52 -4
- package/lib/validation/index.js +52 -6
- package/lib/validation/index.js.map +1 -1
- package/lib/validation/markAutoMovieSlip.d.ts +26 -0
- package/lib/validation/markAutoMovieSlip.js +52 -0
- package/lib/validation/markAutoMovieSlip.js.map +1 -0
- package/lib/validation/validateAffordance.d.ts +3 -3
- package/lib/validation/validateAffordance.js +21 -3
- package/lib/validation/validateAffordance.js.map +1 -1
- package/lib/validation/validateAffordanceArticulation.d.ts +19 -0
- package/lib/validation/validateAffordanceArticulation.js +183 -0
- package/lib/validation/validateAffordanceArticulation.js.map +1 -0
- package/lib/validation/validateBalanceSupport.d.ts +1 -2
- package/lib/validation/validateBalanceSupport.js.map +1 -1
- package/lib/validation/validateBody.d.ts +2 -2
- package/lib/validation/validateBody.js +27 -3
- package/lib/validation/validateBody.js.map +1 -1
- package/lib/validation/validateFootSkate.d.ts +1 -2
- package/lib/validation/validateFootSkate.js.map +1 -1
- package/lib/validation/validateGroundContact.d.ts +1 -2
- package/lib/validation/validateGroundContact.js.map +1 -1
- package/lib/validation/validateJointConstraint.d.ts +1 -1
- package/lib/validation/validateJointConstraint.js +9 -1
- package/lib/validation/validateJointConstraint.js.map +1 -1
- package/lib/validation/validateModel.js +2 -0
- package/lib/validation/validateModel.js.map +1 -1
- package/lib/validation/validateSelfIntersection.d.ts +1 -2
- package/lib/validation/validateSelfIntersection.js.map +1 -1
- package/lib/worldBlock.js +6 -9
- package/lib/worldBlock.js.map +1 -1
- package/package.json +6 -6
- package/src/IAutoMovieFormationPlacement.ts +4 -3
- package/src/analysis/index.ts +5 -0
- package/src/anthropometry/AutoMovieHandAnthropometry.ts +65 -0
- package/src/anthropometry/index.ts +1 -0
- package/src/architecture/appendBuiltRegionDefects.ts +3 -3
- package/src/architecture/builtOutlineIsClosed.ts +3 -3
- package/{lib/architecture/constants/PLANAR_EPSILON.d.ts → src/architecture/constants/BUILT_PLANAR_EPSILON.ts} +1 -1
- package/src/architecture/constants/index.ts +1 -1
- package/src/architecture/index.ts +157 -117
- package/src/cache/index.ts +9 -0
- package/src/composition/AutoMovieComposition.ts +34 -7
- package/src/composition/AutoMovieScheduleCut.ts +141 -0
- package/src/composition/AutoMovieScheduleError.ts +108 -0
- package/src/composition/AutoMovieSchedulePlace.ts +253 -0
- package/src/composition/AutoMovieScheduleWalk.ts +215 -0
- package/src/composition/IAutoMovieIntent.ts +9 -7
- package/src/composition/index.ts +12 -7
- package/src/composition/markAutoMovieContacts.ts +79 -0
- package/src/composition/resolveAutoMovieContactEvents.ts +160 -19
- package/src/composition/resolveAutoMovieMutualGoal.ts +146 -72
- package/src/composition/resolveAutoMovieSchedule.ts +106 -145
- package/src/constants/index.ts +2 -0
- package/src/createAutoMovieGeometryActorReader.ts +2 -1
- package/src/describeAutoMovieInstanceSetSubject.ts +2 -5
- package/src/drawing/index.ts +12 -0
- package/src/effectRuntime/index.ts +7 -0
- package/src/film/compileAttach.ts +2 -5
- package/src/film/compileLaunch.ts +5 -4
- package/src/film/constants/index.ts +3 -0
- package/src/film/index.ts +61 -6
- package/src/film/propAnchorFrame.ts +3 -6
- package/src/film/stageScene.ts +3 -10
- package/src/film/staging/index.ts +11 -0
- package/src/film/staging/lowerLightPlacement.ts +3 -7
- package/src/formationSlotPosition.ts +54 -7
- package/src/geometry/IAutoMovieMark.ts +115 -0
- package/src/geometry/IAutoMovieMeshDefect.ts +39 -0
- package/src/geometry/constants/index.ts +2 -0
- package/src/geometry/construction/AutoMovieConstructionAdmission.ts +98 -13
- package/src/geometry/construction/AutoMovieConstructionBridgeRealize.ts +172 -0
- package/src/geometry/construction/AutoMovieConstructionContinuationRealize.ts +3 -0
- package/src/geometry/construction/AutoMovieConstructionPortRealize.ts +48 -16
- package/src/geometry/construction/AutoMovieConstructionSeeds.ts +54 -10
- package/src/geometry/construction/AutoMovieConstructionSplitBand.ts +509 -15
- package/src/geometry/construction/AutoMovieConstructionSplitRealize.ts +278 -0
- package/src/geometry/construction/AutoMovieConstructionSplitSeam.ts +50 -18
- package/src/geometry/construction/AutoMovieConstructionState.ts +13 -0
- package/src/geometry/construction/AutoMovieLoftCapRead.ts +3 -2
- package/src/geometry/construction/AutoMovieLoftCapSource.ts +34 -1
- package/src/geometry/construction/AutoMovieLoftJet.ts +10 -5
- package/src/geometry/construction/AutoMovieLoftPoint.ts +13 -4
- package/src/geometry/construction/AutoMovieLoftRelief.ts +42 -0
- package/src/geometry/construction/AutoMovieLoftViewRead.ts +34 -6
- package/src/geometry/construction/AutoMovieLoftViewSource.ts +4 -2
- package/src/geometry/construction/AutoMovieNaturalSpline.ts +44 -0
- package/src/geometry/construction/AutoMovieSolidBlendChain.ts +34 -20
- package/src/geometry/construction/AutoMovieSolidBodyMerge.ts +2 -0
- package/src/geometry/construction/AutoMovieSolidClip.ts +341 -54
- package/src/geometry/construction/AutoMovieSolidCycle.ts +104 -26
- package/src/geometry/construction/AutoMovieSolidIntersectionWalk.ts +100 -50
- package/src/geometry/construction/AutoMovieSolidJoin.ts +48 -2
- package/src/geometry/construction/AutoMovieSolidMeshConstraints.ts +35 -3
- package/src/geometry/construction/AutoMovieSolidMeshLoop.ts +55 -4
- package/src/geometry/construction/AutoMovieSolidMeshPlan.ts +79 -34
- package/src/geometry/construction/AutoMovieSolidRail.ts +124 -22
- package/src/geometry/construction/AutoMovieSolidRailSolve.ts +116 -25
- package/src/geometry/construction/AutoMovieViewLoft.ts +9 -0
- package/src/geometry/construction/IAutoMovieConstructionCurve.ts +42 -0
- package/src/geometry/construction/IAutoMovieLoftChain.ts +7 -0
- package/src/geometry/construction/IAutoMovieLoftRelief.ts +11 -0
- package/src/geometry/construction/IAutoMovieViewPart.ts +10 -1
- package/src/geometry/construction/faceAutoMovieSolidMesh.ts +76 -15
- package/src/geometry/construction/fairAutoMovieSolidMesh.ts +252 -0
- package/src/geometry/construction/gridAutoMovieSolidMesh.ts +173 -8
- package/src/geometry/construction/index.ts +82 -2
- package/src/geometry/construction/legalizeAutoMovieSolidMesh.ts +28 -2
- package/src/geometry/construction/markAutoMovieConstructionCurves.ts +58 -0
- package/src/geometry/construction/orientAutoMovieSolidChart.ts +32 -7
- package/src/geometry/construction/probeAutoMovieSolidMesh.ts +52 -30
- package/src/geometry/construction/realizeAutoMovieConstruction.ts +47 -5
- package/src/geometry/construction/sampleAutoMovieConstructionCurves.ts +307 -0
- package/src/geometry/curve/index.ts +48 -25
- package/src/geometry/extract/index.ts +0 -1
- package/src/geometry/index.ts +87 -53
- package/src/geometry/markAutoMovieMeshClearance.ts +69 -0
- package/src/geometry/measureAutoMovieMeshDefects.ts +327 -0
- package/src/geometry/sweep/index.ts +54 -15
- package/src/index.ts +41 -450
- package/src/kinematics/AutoMovieHumanoidDigitSurfaces.ts +110 -0
- package/src/kinematics/AutoMovieHumanoidSurfaceExtents.ts +81 -0
- package/src/kinematics/AutoMovieHumanoidSurfaceRays.ts +286 -0
- package/src/kinematics/AutoMovieHumanoidSurfaceRegions.ts +189 -0
- package/src/kinematics/IAutoMovieHingedArticulation.ts +21 -3
- package/src/kinematics/IAutoMoviePoseRig.ts +39 -0
- package/src/kinematics/IAutoMovieSwivelNear.ts +26 -0
- package/src/kinematics/IAutoMovieSwivelSeed.ts +19 -0
- package/src/kinematics/alternateRigJointAngles.ts +41 -0
- package/src/kinematics/boxExcludedSwivels.ts +260 -0
- package/src/kinematics/constants/HUMANOID_JOINT_AXES.ts +19 -4
- package/src/kinematics/curlChainUntilContact.ts +35 -8
- package/src/kinematics/decomposeJointRotation.ts +15 -178
- package/src/kinematics/decomposeJointRotationOnBasis.ts +310 -0
- package/src/kinematics/fitDigitDescent.ts +253 -0
- package/src/kinematics/fitDigitToTarget.ts +425 -0
- package/src/kinematics/hingedArmArticulation.ts +402 -116
- package/src/kinematics/hingedArmSwivel.ts +295 -0
- package/src/kinematics/index.ts +30 -12
- package/src/kinematics/jointRomOvershoot.ts +30 -19
- package/src/kinematics/jointToQuaternion.ts +8 -43
- package/src/kinematics/jointToQuaternionOnBasis.ts +84 -0
- package/src/kinematics/markAutoMovieBalance.ts +75 -0
- package/src/kinematics/markAutoMovieRomOvershoot.ts +52 -0
- package/src/kinematics/measureAutoMovieHumanoidBody.ts +31 -9
- package/src/kinematics/normalizeJointAxes.ts +66 -12
- package/src/kinematics/poseJointCodec.ts +148 -0
- package/src/kinematics/resolveAutoMovieBalanceOutcome.ts +293 -0
- package/src/kinematics/resolveAutoMovieCenterOfMass.ts +63 -10
- package/src/kinematics/resolveAutoMovieHumanoidRingModules.ts +434 -0
- package/src/kinematics/resolveAutoMovieHumanoidSurfaces.ts +230 -356
- package/src/kinematics/resolveAutoMovieMomentum.ts +253 -0
- package/src/kinematics/swingTwistBasis.ts +162 -0
- package/src/kinematics/swingTwistExcludedSwivels.ts +204 -0
- package/src/kinematics/swingTwistRange.ts +460 -0
- package/src/kinematics/swingTwistRegion.ts +298 -0
- package/src/kinematics/swivelArcs.ts +245 -0
- package/src/math/Quaternion.ts +42 -2
- package/src/math/Transform.ts +65 -0
- package/src/math/assignAutoMovieMinimumCost.ts +86 -0
- package/src/math/bracketedBisection.ts +51 -0
- package/src/math/bracketedRoot.ts +72 -0
- package/src/math/constants/index.ts +1 -0
- package/src/math/index.ts +64 -5
- package/src/math/nearestAngleAlias.ts +43 -0
- package/src/math/solveAutoMovieHalfPlaneProgram.ts +288 -0
- package/src/math/tetrahedralizeAutoMovieDelaunay.ts +264 -0
- package/src/measureAutoMovieGeometryReach.ts +2 -4
- package/src/motion/AirborneTakeoffLinear.ts +70 -0
- package/src/motion/IAutoMovieCrowdAgent.ts +121 -0
- package/src/motion/IAutoMovieSeededChainFit.ts +32 -0
- package/src/motion/IAutoMovieSolvedChainPlant.ts +20 -0
- package/src/motion/IFitChainToTargetProps.ts +67 -0
- package/src/motion/MotionTrajectoryStepper.ts +478 -0
- package/src/motion/basisOf.ts +29 -0
- package/src/motion/carriedAcceleration.ts +56 -0
- package/src/motion/carriedRate.ts +61 -0
- package/src/motion/constants/PLANT_RESIDUAL_EPSILON.ts +10 -0
- package/src/motion/constants/index.ts +1 -0
- package/src/motion/fitChainBend.ts +491 -0
- package/src/motion/fitChainToTarget.ts +13 -485
- package/src/motion/fitHingedChainCandidate.ts +281 -148
- package/src/motion/fitHingedRotationError.ts +164 -0
- package/src/motion/fitSeededChainToTarget.ts +34 -0
- package/src/motion/gaitMotion.ts +6 -10
- package/src/motion/gestureMotion.ts +2 -5
- package/src/motion/importedNodeClipToAutoMovieMotion.ts +3 -6
- package/src/motion/index.ts +40 -9
- package/src/motion/inertializeOffset.ts +16 -2
- package/src/motion/inertializePose.ts +158 -53
- package/src/motion/integrateAirborneRotation.ts +334 -0
- package/src/motion/integrateMotionTrajectory.ts +309 -0
- package/src/motion/orientChainEffector.ts +19 -13
- package/src/motion/resolveHydrodynamicForce.ts +143 -0
- package/src/motion/sampleMotion.ts +2 -5
- package/src/motion/samplePoseVelocity.ts +168 -41
- package/src/motion/smoothMinimum.ts +36 -0
- package/src/motion/solveAirborneTakeoff.ts +471 -0
- package/src/motion/solveDistalTwist.ts +256 -0
- package/src/motion/speedProfile.ts +470 -0
- package/src/motion/splitDistalTwist.ts +55 -64
- package/src/motion/steerAutoMovieCrowd.ts +381 -0
- package/src/motion/steerAutoMovieCrowdGeometry.ts +592 -0
- package/src/perform/index.ts +10 -0
- package/src/physics/AutoMovieAir.ts +22 -0
- package/src/physics/AutoMovieGravity.ts +28 -0
- package/src/physics/IAutoMovieHit.ts +13 -7
- package/src/physics/IAutoMovieProjectile.ts +82 -6
- package/src/physics/IAutoMovieProjectileState.ts +10 -4
- package/src/physics/admitMotionGeometry.ts +16 -0
- package/src/physics/bindPhysicalWorld.ts +22 -11
- package/src/physics/combinePhysicalMassProperties.ts +9 -117
- package/src/physics/deriveCenterOfMass.ts +2 -5
- package/src/physics/derivePhysicalProfile.ts +3 -1
- package/src/physics/index.ts +155 -2
- package/src/physics/markAutoMovieSkeleton.ts +69 -0
- package/src/physics/physicalHullErode.ts +72 -0
- package/src/physics/physicalHullFaces.ts +215 -0
- package/src/physics/physicalHullMass.ts +99 -0
- package/src/physics/physicalHullNearest.ts +210 -0
- package/src/physics/physicalHullSegment.ts +338 -0
- package/src/physics/physicalInertiaTensor.ts +75 -0
- package/src/physics/physicalNativeShape.ts +31 -9
- package/src/physics/physicalPrincipalAxes.ts +114 -0
- package/src/physics/physicalShapeBounds.ts +24 -2
- package/src/physics/physicalShapeNearest.ts +287 -0
- package/src/physics/physicalShapeNormal.ts +105 -0
- package/src/physics/physicalShapePairDistance.ts +153 -0
- package/src/physics/physicalShapeSegmentDistance.ts +18 -92
- package/src/physics/physicalShapeSpan.ts +75 -0
- package/src/physics/physicalShapeSurfaceAnchor.ts +33 -14
- package/src/physics/projectileAt.ts +61 -20
- package/src/physics/projectileContinue.ts +287 -0
- package/src/physics/projectileDragFlight.ts +208 -0
- package/src/physics/projectileFirstContact.ts +286 -0
- package/src/physics/projectileTrajectory.ts +6 -5
- package/src/physics/solveBallisticLaunch.ts +2 -1
- package/src/physics/solveMovingLaunch.ts +2 -1
- package/src/physics/validatePhysicalProfile.ts +20 -1
- package/src/populationRuntime/index.ts +6 -0
- package/src/populationRuntime/materializeCompiledFormation.ts +3 -6
- package/src/random/index.ts +1 -1
- package/src/render/index.ts +20 -11
- package/src/resolve/index.ts +7 -2
- package/src/resolve/lowerSkeletonNodes.ts +3 -10
- package/src/rom/clampJointRom.ts +59 -2
- package/src/rom/clampJointToSkeleton.ts +52 -15
- package/src/rom/constants/ANKLE_DORSIFLEXION.ts +20 -0
- package/src/rom/constants/DEFAULT_HUMANOID_ROM.ts +148 -37
- package/src/rom/constants/ROM_TOLERANCE.ts +8 -0
- package/src/rom/constants/index.ts +2 -0
- package/src/rom/index.ts +1 -0
- package/src/rom/scanJointRom.ts +169 -0
- package/src/rom/validateJointRom.ts +69 -74
- package/src/service/index.ts +9 -0
- package/src/soft/IAutoMovieSoftBodyBoundarySample.ts +3 -0
- package/src/soft/IAutoMovieSoftBodyObserver.ts +36 -0
- package/src/soft/applySoftBodyFriction.ts +65 -0
- package/src/soft/index.ts +22 -0
- package/src/soft/projectSoftCordSelfContact.ts +239 -0
- package/src/soft/simulateSoftBodyCore.ts +127 -15
- package/src/soft/simulateSoftBodyWithBoundaries.ts +16 -2
- package/src/soft/softBodyBudget.ts +11 -0
- package/src/soft/softBodyHeldLoads.ts +85 -0
- package/src/soft/solveSoftBodyCompliantSweep.ts +107 -0
- package/src/soft/validateSoftAnchors.ts +143 -0
- package/src/soft/validateSoftBodyDomain.ts +5 -124
- package/src/soft/validateSoftBounded.ts +42 -0
- package/src/soft/validateSoftCompliance.ts +102 -0
- package/src/sound/index.ts +2 -0
- package/src/text/index.ts +1 -0
- package/src/validation/AffordanceArticulation.ts +173 -0
- package/src/validation/affordanceFollowedTravel.ts +40 -0
- package/src/validation/affordanceLeadingTravel.ts +108 -0
- package/src/validation/affordanceTravelRange.ts +42 -0
- package/src/validation/appendShotEventsArtifact.ts +26 -0
- package/src/validation/constants/index.ts +3 -3
- package/src/validation/detectFreeFall.ts +3 -2
- package/src/validation/index.ts +52 -4
- package/src/validation/markAutoMovieSlip.ts +65 -0
- package/src/validation/validateAffordance.ts +38 -3
- package/src/validation/validateAffordanceArticulation.ts +311 -0
- package/src/validation/validateBalanceSupport.ts +2 -5
- package/src/validation/validateBody.ts +80 -3
- package/src/validation/validateFootSkate.ts +1 -1
- package/src/validation/validateGroundContact.ts +2 -5
- package/src/validation/validateJointConstraint.ts +19 -1
- package/src/validation/validateModel.ts +7 -0
- package/src/validation/validateSelfIntersection.ts +2 -5
- package/src/worldBlock.ts +3 -6
- package/lib/architecture/constants/PLANAR_EPSILON.js.map +0 -1
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sinusoids of a swivel and the arcs of swivels where they lie above a
|
|
3
|
+
* margin. Whatever is turned about a fixed axis by a swivel `ψ` reads, in any
|
|
4
|
+
* fixed linear measure, `a + b cos ψ + c sin ψ` (Rodrigues' formula): an
|
|
5
|
+
* entry of the rotation, a coordinate of a point it carries. Such a sinusoid
|
|
6
|
+
* is fitted exactly from its values at 0, 90 and 180 degrees, it exceeds a
|
|
7
|
+
* margin on the one arc between its two arccos roots, and a union of such
|
|
8
|
+
* arcs over one turn says which swivels some condition refuses.
|
|
9
|
+
* `boxExcludedSwivels` reads a joint box's bounds this way, and a caller
|
|
10
|
+
* bounding a point carried by the swivel (an elbow on its circle) reads its
|
|
11
|
+
* half-planes the same way.
|
|
12
|
+
*
|
|
13
|
+
* @evidence contracts/development/common.md#meaningful-documentation States why each reading is a sinusoid, how one is fitted, where it exceeds a margin and what a union of arcs answers.
|
|
14
|
+
* @evidence contracts/development/design.md#principled-representation A sinusoid is its three coefficients and an arc its two ends, degrees; a union is disjoint arcs over a turn and the one after it, or every swivel.
|
|
15
|
+
* @evidence contracts/development/design.md#minimal-and-owned-surface The two records and the fit, the two combinations, the arc of one sinusoid, the union and its two readings: what `boxExcludedSwivels` and a point's bound share.
|
|
16
|
+
* @evidence contracts/development/design.md#prohibited-design-shortcuts Exact roots, never sampling; the margin is the caller's.
|
|
17
|
+
*/
|
|
18
|
+
export declare namespace swivelArcs {
|
|
19
|
+
/**
|
|
20
|
+
* `a + b cos ψ + c sin ψ` of a swivel `ψ`.
|
|
21
|
+
*
|
|
22
|
+
* @evidence contracts/development/common.md#meaningful-documentation Each member states its term.
|
|
23
|
+
* @evidence contracts/development/design.md#principled-representation The three coefficients of a sinusoid.
|
|
24
|
+
* @evidence contracts/development/design.md#minimal-and-owned-surface Three members.
|
|
25
|
+
* @evidence contracts/development/design.md#prohibited-design-shortcuts None optional.
|
|
26
|
+
*/
|
|
27
|
+
interface ISinusoid {
|
|
28
|
+
/** The constant term. */
|
|
29
|
+
a: number;
|
|
30
|
+
/** The cosine's coefficient. */
|
|
31
|
+
b: number;
|
|
32
|
+
/** The sine's coefficient. */
|
|
33
|
+
c: number;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* An interval of swivels, degrees, `from` up to `to`.
|
|
37
|
+
*
|
|
38
|
+
* @evidence contracts/development/common.md#meaningful-documentation Each member states its end and unit.
|
|
39
|
+
* @evidence contracts/development/design.md#principled-representation The two ends of an arc.
|
|
40
|
+
* @evidence contracts/development/design.md#minimal-and-owned-surface Two members.
|
|
41
|
+
* @evidence contracts/development/design.md#prohibited-design-shortcuts None optional.
|
|
42
|
+
*/
|
|
43
|
+
interface IArc {
|
|
44
|
+
/** The start, degrees. */
|
|
45
|
+
from: number;
|
|
46
|
+
/** The end, degrees, not before `from`. */
|
|
47
|
+
to: number;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* The sinusoid through its values at swivels 0, 90 and 180 degrees.
|
|
51
|
+
*
|
|
52
|
+
* @param zero Its value at 0.
|
|
53
|
+
* @param quarter Its value at 90.
|
|
54
|
+
* @param half Its value at 180.
|
|
55
|
+
* @returns The sinusoid.
|
|
56
|
+
*
|
|
57
|
+
* @evidence contracts/development/common.md#meaningful-documentation States the three samples and the result.
|
|
58
|
+
* @evidence contracts/development/implementation.md#principled-implementation `a + b` at 0, `a + c` at 90 and `a - b` at 180 solve exactly for the three coefficients.
|
|
59
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure Three expressions.
|
|
60
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Exact for any reading of a rotation turned about a fixed axis.
|
|
61
|
+
* @evidenceExclude contracts/development/implementation.md#efficient-algorithms Constant work.
|
|
62
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work The one fit of a joint box's entries and of a point's bounds.
|
|
63
|
+
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources A pure function that retains nothing.
|
|
64
|
+
*/
|
|
65
|
+
function fitted(zero: number, quarter: number, half: number): ISinusoid;
|
|
66
|
+
/**
|
|
67
|
+
* A sinusoid times a number.
|
|
68
|
+
*
|
|
69
|
+
* @param f The sinusoid.
|
|
70
|
+
* @param by The factor.
|
|
71
|
+
* @returns `by · f`.
|
|
72
|
+
*
|
|
73
|
+
* @evidence contracts/development/common.md#meaningful-documentation States the result.
|
|
74
|
+
* @evidence contracts/development/implementation.md#principled-implementation Sinusoids of one swivel are a vector space.
|
|
75
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure One record.
|
|
76
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts None.
|
|
77
|
+
* @evidenceExclude contracts/development/implementation.md#efficient-algorithms Constant work.
|
|
78
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work Shared by every bound.
|
|
79
|
+
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources A pure function that retains nothing.
|
|
80
|
+
*/
|
|
81
|
+
function scaled(f: ISinusoid, by: number): ISinusoid;
|
|
82
|
+
/**
|
|
83
|
+
* Two sinusoids combined.
|
|
84
|
+
*
|
|
85
|
+
* @param f The first.
|
|
86
|
+
* @param u Its factor.
|
|
87
|
+
* @param g The second.
|
|
88
|
+
* @param v Its factor.
|
|
89
|
+
* @returns `u·f + v·g`.
|
|
90
|
+
*
|
|
91
|
+
* @evidence contracts/development/common.md#meaningful-documentation States the result.
|
|
92
|
+
* @evidence contracts/development/implementation.md#principled-implementation Sinusoids of one swivel are a vector space.
|
|
93
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure One record.
|
|
94
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts None.
|
|
95
|
+
* @evidenceExclude contracts/development/implementation.md#efficient-algorithms Constant work.
|
|
96
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work Shared by every bound.
|
|
97
|
+
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources A pure function that retains nothing.
|
|
98
|
+
*/
|
|
99
|
+
function combined(f: ISinusoid, u: number, g: ISinusoid, v: number): ISinusoid;
|
|
100
|
+
/**
|
|
101
|
+
* The swivels where a sinusoid exceeds a margin.
|
|
102
|
+
*
|
|
103
|
+
* @param f The sinusoid.
|
|
104
|
+
* @param margin The margin.
|
|
105
|
+
* @returns The arc between its roots, degrees; every swivel when its least exceeds the margin; none when its greatest does not.
|
|
106
|
+
*
|
|
107
|
+
* @evidence contracts/development/common.md#meaningful-documentation States the three cases.
|
|
108
|
+
* @evidence contracts/development/implementation.md#principled-implementation `a + R cos(ψ - ψ₀)` with `R = hypot(b, c)` and `ψ₀ = atan2(c, b)` exceeds the margin within `acos((margin - a) / R)` of `ψ₀`.
|
|
109
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure Two tests and one arc.
|
|
110
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The roots are exact.
|
|
111
|
+
* @evidenceExclude contracts/development/implementation.md#efficient-algorithms Constant work.
|
|
112
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work Shared by every bound.
|
|
113
|
+
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources A pure function that retains nothing.
|
|
114
|
+
*/
|
|
115
|
+
function above(f: ISinusoid, margin: number): IArc | "all" | null;
|
|
116
|
+
/**
|
|
117
|
+
* Arcs merged into disjoint intervals covering one full turn from 0 and the
|
|
118
|
+
* one after it, so an interval starting in [0, 360) lies in the union
|
|
119
|
+
* exactly when one merged interval holds it.
|
|
120
|
+
*
|
|
121
|
+
* @param arcs The arcs, degrees, any turn.
|
|
122
|
+
* @returns The merged intervals in order, or every swivel when they cover a turn.
|
|
123
|
+
*
|
|
124
|
+
* @evidence contracts/development/common.md#meaningful-documentation States the cover and the "every swivel" case.
|
|
125
|
+
* @evidence contracts/development/implementation.md#principled-implementation Each arc taken into its turn and copied a turn either way, then sorted and merged, so an arc across 0 or 360 is whole.
|
|
126
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure Copy, sort, merge.
|
|
127
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts None.
|
|
128
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Three pieces an arc, one sort.
|
|
129
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work Built once per fit and read by every test of it.
|
|
130
|
+
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Returns a fresh list.
|
|
131
|
+
*/
|
|
132
|
+
function union(arcs: readonly IArc[]): IArc[] | "all";
|
|
133
|
+
/**
|
|
134
|
+
* Whether every swivel from `low` to `high` degrees lies in a union.
|
|
135
|
+
*
|
|
136
|
+
* @param merged The union (`union`).
|
|
137
|
+
* @param low The interval's start, degrees.
|
|
138
|
+
* @param high Its end, degrees, at most a turn after `low`.
|
|
139
|
+
* @returns Whether one merged interval holds it.
|
|
140
|
+
*
|
|
141
|
+
* @evidence contracts/development/common.md#meaningful-documentation States the test.
|
|
142
|
+
* @evidence contracts/development/implementation.md#principled-implementation The interval taken into the turn `union` covers twice.
|
|
143
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure One scan.
|
|
144
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts None.
|
|
145
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Linear in the few merged intervals.
|
|
146
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work Read by every test of one union.
|
|
147
|
+
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources A pure function that retains nothing.
|
|
148
|
+
*/
|
|
149
|
+
function covers(merged: readonly IArc[] | "all", low: number, high: number): boolean;
|
|
150
|
+
/**
|
|
151
|
+
* The swivel nearest a given one that lies outside a union.
|
|
152
|
+
*
|
|
153
|
+
* @param merged The union (`union`).
|
|
154
|
+
* @param swivel The swivel, degrees.
|
|
155
|
+
* @returns The swivel itself when outside, else the nearer end of the merged interval holding it, degrees in that interval's turn; null when the union is every swivel.
|
|
156
|
+
*
|
|
157
|
+
* @evidence contracts/development/common.md#meaningful-documentation States the three results.
|
|
158
|
+
* @evidence contracts/development/implementation.md#principled-implementation Merged intervals are disjoint, so a swivel inside one leaves the union first at one of its two ends.
|
|
159
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure One lookup and one comparison.
|
|
160
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The end is the exact root.
|
|
161
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Linear in the few merged intervals.
|
|
162
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work Reads `union`'s cover.
|
|
163
|
+
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources A pure function that retains nothing.
|
|
164
|
+
*/
|
|
165
|
+
function nearest(merged: readonly IArc[] | "all", swivel: number): number | null;
|
|
166
|
+
}
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.swivelArcs = void 0;
|
|
4
|
+
const Quaternion_1 = require("../math/Quaternion");
|
|
5
|
+
/**
|
|
6
|
+
* Sinusoids of a swivel and the arcs of swivels where they lie above a
|
|
7
|
+
* margin. Whatever is turned about a fixed axis by a swivel `ψ` reads, in any
|
|
8
|
+
* fixed linear measure, `a + b cos ψ + c sin ψ` (Rodrigues' formula): an
|
|
9
|
+
* entry of the rotation, a coordinate of a point it carries. Such a sinusoid
|
|
10
|
+
* is fitted exactly from its values at 0, 90 and 180 degrees, it exceeds a
|
|
11
|
+
* margin on the one arc between its two arccos roots, and a union of such
|
|
12
|
+
* arcs over one turn says which swivels some condition refuses.
|
|
13
|
+
* `boxExcludedSwivels` reads a joint box's bounds this way, and a caller
|
|
14
|
+
* bounding a point carried by the swivel (an elbow on its circle) reads its
|
|
15
|
+
* half-planes the same way.
|
|
16
|
+
*
|
|
17
|
+
* @evidence contracts/development/common.md#meaningful-documentation States why each reading is a sinusoid, how one is fitted, where it exceeds a margin and what a union of arcs answers.
|
|
18
|
+
* @evidence contracts/development/design.md#principled-representation A sinusoid is its three coefficients and an arc its two ends, degrees; a union is disjoint arcs over a turn and the one after it, or every swivel.
|
|
19
|
+
* @evidence contracts/development/design.md#minimal-and-owned-surface The two records and the fit, the two combinations, the arc of one sinusoid, the union and its two readings: what `boxExcludedSwivels` and a point's bound share.
|
|
20
|
+
* @evidence contracts/development/design.md#prohibited-design-shortcuts Exact roots, never sampling; the margin is the caller's.
|
|
21
|
+
*/
|
|
22
|
+
var swivelArcs;
|
|
23
|
+
(function (swivelArcs) {
|
|
24
|
+
/**
|
|
25
|
+
* The sinusoid through its values at swivels 0, 90 and 180 degrees.
|
|
26
|
+
*
|
|
27
|
+
* @param zero Its value at 0.
|
|
28
|
+
* @param quarter Its value at 90.
|
|
29
|
+
* @param half Its value at 180.
|
|
30
|
+
* @returns The sinusoid.
|
|
31
|
+
*
|
|
32
|
+
* @evidence contracts/development/common.md#meaningful-documentation States the three samples and the result.
|
|
33
|
+
* @evidence contracts/development/implementation.md#principled-implementation `a + b` at 0, `a + c` at 90 and `a - b` at 180 solve exactly for the three coefficients.
|
|
34
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure Three expressions.
|
|
35
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Exact for any reading of a rotation turned about a fixed axis.
|
|
36
|
+
* @evidenceExclude contracts/development/implementation.md#efficient-algorithms Constant work.
|
|
37
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work The one fit of a joint box's entries and of a point's bounds.
|
|
38
|
+
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources A pure function that retains nothing.
|
|
39
|
+
*/
|
|
40
|
+
function fitted(zero, quarter, half) {
|
|
41
|
+
const a = (zero + half) / 2;
|
|
42
|
+
return { a, b: (zero - half) / 2, c: quarter - a };
|
|
43
|
+
}
|
|
44
|
+
swivelArcs.fitted = fitted;
|
|
45
|
+
/**
|
|
46
|
+
* A sinusoid times a number.
|
|
47
|
+
*
|
|
48
|
+
* @param f The sinusoid.
|
|
49
|
+
* @param by The factor.
|
|
50
|
+
* @returns `by · f`.
|
|
51
|
+
*
|
|
52
|
+
* @evidence contracts/development/common.md#meaningful-documentation States the result.
|
|
53
|
+
* @evidence contracts/development/implementation.md#principled-implementation Sinusoids of one swivel are a vector space.
|
|
54
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure One record.
|
|
55
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts None.
|
|
56
|
+
* @evidenceExclude contracts/development/implementation.md#efficient-algorithms Constant work.
|
|
57
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work Shared by every bound.
|
|
58
|
+
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources A pure function that retains nothing.
|
|
59
|
+
*/
|
|
60
|
+
function scaled(f, by) {
|
|
61
|
+
return { a: f.a * by, b: f.b * by, c: f.c * by };
|
|
62
|
+
}
|
|
63
|
+
swivelArcs.scaled = scaled;
|
|
64
|
+
/**
|
|
65
|
+
* Two sinusoids combined.
|
|
66
|
+
*
|
|
67
|
+
* @param f The first.
|
|
68
|
+
* @param u Its factor.
|
|
69
|
+
* @param g The second.
|
|
70
|
+
* @param v Its factor.
|
|
71
|
+
* @returns `u·f + v·g`.
|
|
72
|
+
*
|
|
73
|
+
* @evidence contracts/development/common.md#meaningful-documentation States the result.
|
|
74
|
+
* @evidence contracts/development/implementation.md#principled-implementation Sinusoids of one swivel are a vector space.
|
|
75
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure One record.
|
|
76
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts None.
|
|
77
|
+
* @evidenceExclude contracts/development/implementation.md#efficient-algorithms Constant work.
|
|
78
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work Shared by every bound.
|
|
79
|
+
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources A pure function that retains nothing.
|
|
80
|
+
*/
|
|
81
|
+
function combined(f, u, g, v) {
|
|
82
|
+
return { a: u * f.a + v * g.a, b: u * f.b + v * g.b, c: u * f.c + v * g.c };
|
|
83
|
+
}
|
|
84
|
+
swivelArcs.combined = combined;
|
|
85
|
+
/**
|
|
86
|
+
* The swivels where a sinusoid exceeds a margin.
|
|
87
|
+
*
|
|
88
|
+
* @param f The sinusoid.
|
|
89
|
+
* @param margin The margin.
|
|
90
|
+
* @returns The arc between its roots, degrees; every swivel when its least exceeds the margin; none when its greatest does not.
|
|
91
|
+
*
|
|
92
|
+
* @evidence contracts/development/common.md#meaningful-documentation States the three cases.
|
|
93
|
+
* @evidence contracts/development/implementation.md#principled-implementation `a + R cos(ψ - ψ₀)` with `R = hypot(b, c)` and `ψ₀ = atan2(c, b)` exceeds the margin within `acos((margin - a) / R)` of `ψ₀`.
|
|
94
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure Two tests and one arc.
|
|
95
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The roots are exact.
|
|
96
|
+
* @evidenceExclude contracts/development/implementation.md#efficient-algorithms Constant work.
|
|
97
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work Shared by every bound.
|
|
98
|
+
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources A pure function that retains nothing.
|
|
99
|
+
*/
|
|
100
|
+
function above(f, margin) {
|
|
101
|
+
const radius = Math.hypot(f.b, f.c);
|
|
102
|
+
if (f.a - radius > margin)
|
|
103
|
+
return "all";
|
|
104
|
+
if (f.a + radius <= margin)
|
|
105
|
+
return null;
|
|
106
|
+
const centre = Math.atan2(f.c, f.b) / Quaternion_1.Quaternion.DEG2RAD;
|
|
107
|
+
const half = Math.acos((margin - f.a) / radius) / Quaternion_1.Quaternion.DEG2RAD;
|
|
108
|
+
return { from: centre - half, to: centre + half };
|
|
109
|
+
}
|
|
110
|
+
swivelArcs.above = above;
|
|
111
|
+
/**
|
|
112
|
+
* Arcs merged into disjoint intervals covering one full turn from 0 and the
|
|
113
|
+
* one after it, so an interval starting in [0, 360) lies in the union
|
|
114
|
+
* exactly when one merged interval holds it.
|
|
115
|
+
*
|
|
116
|
+
* @param arcs The arcs, degrees, any turn.
|
|
117
|
+
* @returns The merged intervals in order, or every swivel when they cover a turn.
|
|
118
|
+
*
|
|
119
|
+
* @evidence contracts/development/common.md#meaningful-documentation States the cover and the "every swivel" case.
|
|
120
|
+
* @evidence contracts/development/implementation.md#principled-implementation Each arc taken into its turn and copied a turn either way, then sorted and merged, so an arc across 0 or 360 is whole.
|
|
121
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure Copy, sort, merge.
|
|
122
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts None.
|
|
123
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Three pieces an arc, one sort.
|
|
124
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work Built once per fit and read by every test of it.
|
|
125
|
+
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Returns a fresh list.
|
|
126
|
+
*/
|
|
127
|
+
function union(arcs) {
|
|
128
|
+
const pieces = [];
|
|
129
|
+
for (const arc of arcs) {
|
|
130
|
+
const from = arc.from - 360 * Math.floor(arc.from / 360);
|
|
131
|
+
for (const turn of [-360, 0, 360])
|
|
132
|
+
pieces.push({
|
|
133
|
+
from: from + turn,
|
|
134
|
+
to: from + (arc.to - arc.from) + turn,
|
|
135
|
+
});
|
|
136
|
+
}
|
|
137
|
+
pieces.sort((x, y) => x.from - y.from);
|
|
138
|
+
const out = [];
|
|
139
|
+
for (const piece of pieces) {
|
|
140
|
+
const last = out[out.length - 1];
|
|
141
|
+
if (last !== undefined && piece.from <= last.to)
|
|
142
|
+
last.to = Math.max(last.to, piece.to);
|
|
143
|
+
else
|
|
144
|
+
out.push({ ...piece });
|
|
145
|
+
}
|
|
146
|
+
if (out.some((arc) => arc.from <= 0 && arc.to >= 360))
|
|
147
|
+
return "all";
|
|
148
|
+
return out;
|
|
149
|
+
}
|
|
150
|
+
swivelArcs.union = union;
|
|
151
|
+
/**
|
|
152
|
+
* Whether every swivel from `low` to `high` degrees lies in a union.
|
|
153
|
+
*
|
|
154
|
+
* @param merged The union (`union`).
|
|
155
|
+
* @param low The interval's start, degrees.
|
|
156
|
+
* @param high Its end, degrees, at most a turn after `low`.
|
|
157
|
+
* @returns Whether one merged interval holds it.
|
|
158
|
+
*
|
|
159
|
+
* @evidence contracts/development/common.md#meaningful-documentation States the test.
|
|
160
|
+
* @evidence contracts/development/implementation.md#principled-implementation The interval taken into the turn `union` covers twice.
|
|
161
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure One scan.
|
|
162
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts None.
|
|
163
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Linear in the few merged intervals.
|
|
164
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work Read by every test of one union.
|
|
165
|
+
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources A pure function that retains nothing.
|
|
166
|
+
*/
|
|
167
|
+
function covers(merged, low, high) {
|
|
168
|
+
if (merged === "all")
|
|
169
|
+
return true;
|
|
170
|
+
const turns = 360 * Math.floor(low / 360);
|
|
171
|
+
return merged.some((arc) => arc.from <= low - turns && arc.to >= high - turns);
|
|
172
|
+
}
|
|
173
|
+
swivelArcs.covers = covers;
|
|
174
|
+
/**
|
|
175
|
+
* The swivel nearest a given one that lies outside a union.
|
|
176
|
+
*
|
|
177
|
+
* @param merged The union (`union`).
|
|
178
|
+
* @param swivel The swivel, degrees.
|
|
179
|
+
* @returns The swivel itself when outside, else the nearer end of the merged interval holding it, degrees in that interval's turn; null when the union is every swivel.
|
|
180
|
+
*
|
|
181
|
+
* @evidence contracts/development/common.md#meaningful-documentation States the three results.
|
|
182
|
+
* @evidence contracts/development/implementation.md#principled-implementation Merged intervals are disjoint, so a swivel inside one leaves the union first at one of its two ends.
|
|
183
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure One lookup and one comparison.
|
|
184
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The end is the exact root.
|
|
185
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Linear in the few merged intervals.
|
|
186
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work Reads `union`'s cover.
|
|
187
|
+
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources A pure function that retains nothing.
|
|
188
|
+
*/
|
|
189
|
+
function nearest(merged, swivel) {
|
|
190
|
+
if (merged === "all")
|
|
191
|
+
return null;
|
|
192
|
+
const at = swivel - 360 * Math.floor(swivel / 360);
|
|
193
|
+
const holding = merged.find((arc) => arc.from <= at && at <= arc.to);
|
|
194
|
+
if (holding === undefined)
|
|
195
|
+
return swivel;
|
|
196
|
+
return at - holding.from <= holding.to - at ? holding.from : holding.to;
|
|
197
|
+
}
|
|
198
|
+
swivelArcs.nearest = nearest;
|
|
199
|
+
})(swivelArcs || (exports.swivelArcs = swivelArcs = {}));
|
|
200
|
+
//# sourceMappingURL=swivelArcs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"swivelArcs.js","sourceRoot":"","sources":["../../src/kinematics/swivelArcs.ts"],"names":[],"mappings":";;;AAAA,mDAAgD;AAEhD;;;;;;;;;;;;;;;;GAgBG;AACH,IAAiB,UAAU,CAiO1B;AAjOD,WAAiB,UAAU;IAoCzB;;;;;;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AG,IAAI,CAAC,KAAK,CAAC,MAAM,GAAG,GAAG,CAAC,CAAC;QAC3D,MAAM,OAAO,GAAqB,MAAM,CAAC,IAAI,CAC3C,CAAC,GAAS,EAAW,EAAE,CAAC,GAAG,CAAC,IAAI,IAAI,EAAE,IAAI,EAAE,IAAI,GAAG,CAAC,EAAE,CACvD,CAAC;QACF,IAAI,OAAO,KAAK,SAAS;YAAE,OAAO,MAAM,CAAC;QACzC,OAAO,EAAE,GAAG,OAAO,CAAC,IAAI,IAAI,OAAO,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;IAC1E,CAAC;IAXe,WAAA,OAAO,UAWtB,CAAA;AACH,CAAC,EAjOgB,UAAU,aAAV,UAAU,GAAV,UAAU,QAiO1B"}
|
package/lib/math/Quaternion.d.ts
CHANGED
|
@@ -10,8 +10,8 @@ import { IAutoMovieEuler, IAutoMovieQuaternion, IAutoMovieVector3 } from "@autom
|
|
|
10
10
|
* leaves its inputs unchanged and returns a new value.
|
|
11
11
|
*
|
|
12
12
|
* @evidence contracts/development/common.md#meaningful-documentation States the component order, where quaternions come from and go, the unit-length premise for rotation arguments, and that every function returns a new value.
|
|
13
|
-
* @evidence contracts/development/design.md#principled-representation Represents Pure quaternion math over , components `(x, y, z, w)` in glTF order: companion namespace of
|
|
14
|
-
* @evidence contracts/development/design.md#minimal-and-owned-surface Owned by the module that declares `Quaternion` in packages/engine/src/math/Quaternion.ts; its surface is the
|
|
13
|
+
* @evidence contracts/development/design.md#principled-representation Represents Pure quaternion math over , components `(x, y, z, w)` in glTF order: companion namespace of 12 members (`identity`, `DEG2RAD`, `EULER_AXES`, `multiply`, `normalize`, `inverse`, ...); units and frames named in its text: quaternion, radians, degree, world, local. It has no optional member, so no absent-value state combines with another.
|
|
14
|
+
* @evidence contracts/development/design.md#minimal-and-owned-surface Owned by the module that declares `Quaternion` in packages/engine/src/math/Quaternion.ts; its surface is the 12 members listed and the text shows 335 other files naming it, mostly packages/engine (134), test (78), movies (62), so no member is declared for a presumed future need.
|
|
15
15
|
* @evidence contracts/development/design.md#prohibited-design-shortcuts Scanning the declaration finds no `any`, no `unknown`, no index signature and no cast; it duplicates no type that another owner declares as far as a name search shows.
|
|
16
16
|
*/
|
|
17
17
|
export declare namespace Quaternion {
|
|
@@ -167,4 +167,31 @@ export declare namespace Quaternion {
|
|
|
167
167
|
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Each branch creates one temporary weighted quaternion and returns its normalized copy, without retaining either endpoint.
|
|
168
168
|
*/
|
|
169
169
|
const slerp: (a: IAutoMovieQuaternion, b: IAutoMovieQuaternion, t: number) => IAutoMovieQuaternion;
|
|
170
|
+
/**
|
|
171
|
+
* The angle of the rotation that takes `a` to `b`, in radians within
|
|
172
|
+
* `[0, π]`: the geodesic distance between the two rotations. `q` and `-q`
|
|
173
|
+
* are the same rotation, so negating either argument changes nothing.
|
|
174
|
+
*
|
|
175
|
+
* The angle is `2 atan2(|v|, |w|)` of the relative quaternion
|
|
176
|
+
* `inverse(a) * b`, with `v` its vector part and `w` its scalar part. The
|
|
177
|
+
* shorter formula `2 acos |a · b|` reads a small angle from how far a
|
|
178
|
+
* cosine falls short of 1, which binary64 resolves only to about 1.1e-16,
|
|
179
|
+
* so it returns every angle below about 3e-8 radian as 0 or as one of a few
|
|
180
|
+
* steps that size; the vector part keeps full relative precision there. A
|
|
181
|
+
* search that ranks candidates by this angle needs that precision to settle
|
|
182
|
+
* on the same candidate for mirrored inputs.
|
|
183
|
+
*
|
|
184
|
+
* @param a Unit rotation.
|
|
185
|
+
* @param b Unit rotation.
|
|
186
|
+
* @returns The angle in radians.
|
|
187
|
+
*
|
|
188
|
+
* @evidence contracts/development/implementation.md#principled-implementation The relative rotation of two unit quaternions is `inverse(a) * b`, whose vector part has length `sin(θ/2)` and whose scalar part is `cos(θ/2)`; reading the half angle from both through atan2 is accurate at every angle, where arccosine of the dot product loses all digits of an angle below the square root of the unit roundoff.
|
|
189
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure One owner for the distance between rotations that the chain fit's reference term, its effector error and its continuity order all read, composed from this namespace's own `inverse` and `multiply`.
|
|
190
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No clamp of a dot product and no threshold: the absolute scalar part is the stated identification of `q` with `-q`, and the result is exact to rounding for every pair.
|
|
191
|
+
* @evidence contracts/development/common.md#meaningful-documentation States the unit, the range, the sign insensitivity, the formula and why the shorter arccosine form is not used, and the unit-length premise of both arguments.
|
|
192
|
+
* @evidenceExclude contracts/development/implementation.md#efficient-algorithms One Hamilton product, one hypotenuse and one arctangent in constant time, with no algorithm to choose.
|
|
193
|
+
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A pure function of two rotations that coordinates no work across calls.
|
|
194
|
+
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Creates two temporary quaternions and returns a number; nothing is retained.
|
|
195
|
+
*/
|
|
196
|
+
const angle: (a: IAutoMovieQuaternion, b: IAutoMovieQuaternion) => number;
|
|
170
197
|
}
|
package/lib/math/Quaternion.js
CHANGED
|
@@ -13,8 +13,8 @@ const QUATERNION_NLERP_DOT_THRESHOLD_1 = require("./constants/QUATERNION_NLERP_D
|
|
|
13
13
|
* leaves its inputs unchanged and returns a new value.
|
|
14
14
|
*
|
|
15
15
|
* @evidence contracts/development/common.md#meaningful-documentation States the component order, where quaternions come from and go, the unit-length premise for rotation arguments, and that every function returns a new value.
|
|
16
|
-
* @evidence contracts/development/design.md#principled-representation Represents Pure quaternion math over , components `(x, y, z, w)` in glTF order: companion namespace of
|
|
17
|
-
* @evidence contracts/development/design.md#minimal-and-owned-surface Owned by the module that declares `Quaternion` in packages/engine/src/math/Quaternion.ts; its surface is the
|
|
16
|
+
* @evidence contracts/development/design.md#principled-representation Represents Pure quaternion math over , components `(x, y, z, w)` in glTF order: companion namespace of 12 members (`identity`, `DEG2RAD`, `EULER_AXES`, `multiply`, `normalize`, `inverse`, ...); units and frames named in its text: quaternion, radians, degree, world, local. It has no optional member, so no absent-value state combines with another.
|
|
17
|
+
* @evidence contracts/development/design.md#minimal-and-owned-surface Owned by the module that declares `Quaternion` in packages/engine/src/math/Quaternion.ts; its surface is the 12 members listed and the text shows 335 other files naming it, mostly packages/engine (134), test (78), movies (62), so no member is declared for a presumed future need.
|
|
18
18
|
* @evidence contracts/development/design.md#prohibited-design-shortcuts Scanning the declaration finds no `any`, no `unknown`, no index signature and no cast; it duplicates no type that another owner declares as far as a name search shows.
|
|
19
19
|
*/
|
|
20
20
|
var Quaternion;
|
|
@@ -290,5 +290,36 @@ var Quaternion;
|
|
|
290
290
|
w: a.w * wa + bw * wb,
|
|
291
291
|
});
|
|
292
292
|
};
|
|
293
|
+
/**
|
|
294
|
+
* The angle of the rotation that takes `a` to `b`, in radians within
|
|
295
|
+
* `[0, π]`: the geodesic distance between the two rotations. `q` and `-q`
|
|
296
|
+
* are the same rotation, so negating either argument changes nothing.
|
|
297
|
+
*
|
|
298
|
+
* The angle is `2 atan2(|v|, |w|)` of the relative quaternion
|
|
299
|
+
* `inverse(a) * b`, with `v` its vector part and `w` its scalar part. The
|
|
300
|
+
* shorter formula `2 acos |a · b|` reads a small angle from how far a
|
|
301
|
+
* cosine falls short of 1, which binary64 resolves only to about 1.1e-16,
|
|
302
|
+
* so it returns every angle below about 3e-8 radian as 0 or as one of a few
|
|
303
|
+
* steps that size; the vector part keeps full relative precision there. A
|
|
304
|
+
* search that ranks candidates by this angle needs that precision to settle
|
|
305
|
+
* on the same candidate for mirrored inputs.
|
|
306
|
+
*
|
|
307
|
+
* @param a Unit rotation.
|
|
308
|
+
* @param b Unit rotation.
|
|
309
|
+
* @returns The angle in radians.
|
|
310
|
+
*
|
|
311
|
+
* @evidence contracts/development/implementation.md#principled-implementation The relative rotation of two unit quaternions is `inverse(a) * b`, whose vector part has length `sin(θ/2)` and whose scalar part is `cos(θ/2)`; reading the half angle from both through atan2 is accurate at every angle, where arccosine of the dot product loses all digits of an angle below the square root of the unit roundoff.
|
|
312
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure One owner for the distance between rotations that the chain fit's reference term, its effector error and its continuity order all read, composed from this namespace's own `inverse` and `multiply`.
|
|
313
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No clamp of a dot product and no threshold: the absolute scalar part is the stated identification of `q` with `-q`, and the result is exact to rounding for every pair.
|
|
314
|
+
* @evidence contracts/development/common.md#meaningful-documentation States the unit, the range, the sign insensitivity, the formula and why the shorter arccosine form is not used, and the unit-length premise of both arguments.
|
|
315
|
+
* @evidenceExclude contracts/development/implementation.md#efficient-algorithms One Hamilton product, one hypotenuse and one arctangent in constant time, with no algorithm to choose.
|
|
316
|
+
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A pure function of two rotations that coordinates no work across calls.
|
|
317
|
+
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Creates two temporary quaternions and returns a number; nothing is retained.
|
|
318
|
+
*/
|
|
319
|
+
Quaternion.angle = (a, b) => {
|
|
320
|
+
const relative = Quaternion.multiply(Quaternion.inverse(a), b);
|
|
321
|
+
return (2 *
|
|
322
|
+
Math.atan2(Math.hypot(relative.x, relative.y, relative.z), Math.abs(relative.w)));
|
|
323
|
+
};
|
|
293
324
|
})(Quaternion || (exports.Quaternion = Quaternion = {}));
|
|
294
325
|
//# sourceMappingURL=Quaternion.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Quaternion.js","sourceRoot":"","sources":["../../src/math/Quaternion.ts"],"names":[],"mappings":";;;AAMA,+FAA4F;AAE5F;;;;;;;;;;;;;;GAcG;AACH,IAAiB,UAAU,
|
|
1
|
+
{"version":3,"file":"Quaternion.js","sourceRoot":"","sources":["../../src/math/Quaternion.ts"],"names":[],"mappings":";;;AAMA,+FAA4F;AAE5F;;;;;;;;;;;;;;GAcG;AACH,IAAiB,UAAU,CAkX1B;AAlXD,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}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type { IAutoMovieQuaternion, IAutoMovieTransform, IAutoMovieVector3 } from "@automovie/interface";
|
|
2
|
+
/**
|
|
3
|
+
* The one constructor of {@link IAutoMovieTransform} records: a translation,
|
|
4
|
+
* a rotation and a per-axis scale, metres, a unit quaternion and
|
|
5
|
+
* dimensionless factors.
|
|
6
|
+
*
|
|
7
|
+
* A frame that does not scale carries the unit scale, `(1, 1, 1)`; it is
|
|
8
|
+
* written here once instead of at every site that builds a frame. Every
|
|
9
|
+
* function returns a new record, because callers spread and build on the
|
|
10
|
+
* frames they are given and must never alias one shared record.
|
|
11
|
+
*
|
|
12
|
+
* @evidence contracts/development/common.md#meaningful-documentation States what the record holds, its units, the unit scale's meaning and that every call returns a new record.
|
|
13
|
+
* @evidence contracts/development/design.md#principled-representation The interface's transform record built from its three parts, the scale defaulting to the identity of scaling.
|
|
14
|
+
* @evidence contracts/development/design.md#minimal-and-owned-surface Two members: the identity transform and the transform of given parts.
|
|
15
|
+
* @evidence contracts/development/design.md#prohibited-design-shortcuts No shared constant record: each frame owns its components, as `Quaternion.identity` does.
|
|
16
|
+
*/
|
|
17
|
+
export declare namespace Transform {
|
|
18
|
+
/**
|
|
19
|
+
* A new identity transform: no translation, no rotation and the unit scale.
|
|
20
|
+
*
|
|
21
|
+
* @returns The transform.
|
|
22
|
+
*
|
|
23
|
+
* @evidence contracts/development/common.md#meaningful-documentation States the three parts and that each call returns a new record.
|
|
24
|
+
* @evidence contracts/development/implementation.md#principled-implementation The neutral element of composing transforms: the zero translation, the identity rotation and the unit scale.
|
|
25
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure One call of `of` with the zero translation and the identity rotation.
|
|
26
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Returns the same exact value for every call, never a cached record.
|
|
27
|
+
* @evidenceExclude contracts/development/implementation.md#efficient-algorithms Three literal parts in constant time.
|
|
28
|
+
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A fresh record is the contract, so sharing one would be wrong rather than cheaper.
|
|
29
|
+
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Each record owns its components and nothing is retained.
|
|
30
|
+
*/
|
|
31
|
+
const identity: () => IAutoMovieTransform;
|
|
32
|
+
/**
|
|
33
|
+
* A new transform of a translation and a rotation, and a scale that is the
|
|
34
|
+
* unit scale when absent.
|
|
35
|
+
*
|
|
36
|
+
* @param translation World or parent-frame metres.
|
|
37
|
+
* @param rotation A unit quaternion.
|
|
38
|
+
* @param scale Per-axis factors, strictly positive; `(1, 1, 1)` when absent.
|
|
39
|
+
* @returns The transform.
|
|
40
|
+
*
|
|
41
|
+
* @evidence contracts/development/common.md#meaningful-documentation States each part's unit, the scale's default and the result.
|
|
42
|
+
* @evidence contracts/development/implementation.md#principled-implementation The record of its three parts, the unscaled frame's scale the identity of scaling.
|
|
43
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure One literal from the parts.
|
|
44
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The parts are taken as given; the scale's positivity is the caller's premise, which the engine's transform validation checks.
|
|
45
|
+
* @evidenceExclude contracts/development/implementation.md#efficient-algorithms One record in constant time.
|
|
46
|
+
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A pure constructor of its arguments.
|
|
47
|
+
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Returns a new record; the default scale is new on each call.
|
|
48
|
+
*/
|
|
49
|
+
function of(translation: IAutoMovieVector3, rotation: IAutoMovieQuaternion, scale?: IAutoMovieVector3): IAutoMovieTransform;
|
|
50
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Transform = void 0;
|
|
4
|
+
const Quaternion_1 = require("./Quaternion");
|
|
5
|
+
/**
|
|
6
|
+
* The one constructor of {@link IAutoMovieTransform} records: a translation,
|
|
7
|
+
* a rotation and a per-axis scale, metres, a unit quaternion and
|
|
8
|
+
* dimensionless factors.
|
|
9
|
+
*
|
|
10
|
+
* A frame that does not scale carries the unit scale, `(1, 1, 1)`; it is
|
|
11
|
+
* written here once instead of at every site that builds a frame. Every
|
|
12
|
+
* function returns a new record, because callers spread and build on the
|
|
13
|
+
* frames they are given and must never alias one shared record.
|
|
14
|
+
*
|
|
15
|
+
* @evidence contracts/development/common.md#meaningful-documentation States what the record holds, its units, the unit scale's meaning and that every call returns a new record.
|
|
16
|
+
* @evidence contracts/development/design.md#principled-representation The interface's transform record built from its three parts, the scale defaulting to the identity of scaling.
|
|
17
|
+
* @evidence contracts/development/design.md#minimal-and-owned-surface Two members: the identity transform and the transform of given parts.
|
|
18
|
+
* @evidence contracts/development/design.md#prohibited-design-shortcuts No shared constant record: each frame owns its components, as `Quaternion.identity` does.
|
|
19
|
+
*/
|
|
20
|
+
var Transform;
|
|
21
|
+
(function (Transform) {
|
|
22
|
+
/**
|
|
23
|
+
* A new identity transform: no translation, no rotation and the unit scale.
|
|
24
|
+
*
|
|
25
|
+
* @returns The transform.
|
|
26
|
+
*
|
|
27
|
+
* @evidence contracts/development/common.md#meaningful-documentation States the three parts and that each call returns a new record.
|
|
28
|
+
* @evidence contracts/development/implementation.md#principled-implementation The neutral element of composing transforms: the zero translation, the identity rotation and the unit scale.
|
|
29
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure One call of `of` with the zero translation and the identity rotation.
|
|
30
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Returns the same exact value for every call, never a cached record.
|
|
31
|
+
* @evidenceExclude contracts/development/implementation.md#efficient-algorithms Three literal parts in constant time.
|
|
32
|
+
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A fresh record is the contract, so sharing one would be wrong rather than cheaper.
|
|
33
|
+
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Each record owns its components and nothing is retained.
|
|
34
|
+
*/
|
|
35
|
+
Transform.identity = () => of({ x: 0, y: 0, z: 0 }, Quaternion_1.Quaternion.identity());
|
|
36
|
+
/**
|
|
37
|
+
* A new transform of a translation and a rotation, and a scale that is the
|
|
38
|
+
* unit scale when absent.
|
|
39
|
+
*
|
|
40
|
+
* @param translation World or parent-frame metres.
|
|
41
|
+
* @param rotation A unit quaternion.
|
|
42
|
+
* @param scale Per-axis factors, strictly positive; `(1, 1, 1)` when absent.
|
|
43
|
+
* @returns The transform.
|
|
44
|
+
*
|
|
45
|
+
* @evidence contracts/development/common.md#meaningful-documentation States each part's unit, the scale's default and the result.
|
|
46
|
+
* @evidence contracts/development/implementation.md#principled-implementation The record of its three parts, the unscaled frame's scale the identity of scaling.
|
|
47
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure One literal from the parts.
|
|
48
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The parts are taken as given; the scale's positivity is the caller's premise, which the engine's transform validation checks.
|
|
49
|
+
* @evidenceExclude contracts/development/implementation.md#efficient-algorithms One record in constant time.
|
|
50
|
+
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A pure constructor of its arguments.
|
|
51
|
+
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Returns a new record; the default scale is new on each call.
|
|
52
|
+
*/
|
|
53
|
+
function of(translation, rotation, scale = { x: 1, y: 1, z: 1 }) {
|
|
54
|
+
return { translation, rotation, scale };
|
|
55
|
+
}
|
|
56
|
+
Transform.of = of;
|
|
57
|
+
})(Transform || (exports.Transform = Transform = {}));
|
|
58
|
+
//# sourceMappingURL=Transform.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Transform.js","sourceRoot":"","sources":["../../src/math/Transform.ts"],"names":[],"mappings":";;;AAMA,6CAA0C;AAE1C;;;;;;;;;;;;;;GAcG;AACH,IAAiB,SAAS,CAyCzB;AAzCD,WAAiB,SAAS;IACxB;;;;;;;;;;;;OAYG;IACU,kBAAQ,GAA8B,GAAwB,EAAE,CAC3E,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,uBAAU,CAAC,QAAQ,EAAE,CAAC,CAAC;IAElD;;;;;;;;;;;;;;;;OAgBG;IACH,SAAgB,EAAE,CAChB,WAA8B,EAC9B,QAA8B,EAC9B,KAAK,GAAsB,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE;QAE/C,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAC1C,CAAC;IANe,UAAA,EAAE,KAMjB,CAAA;AACH,CAAC,EAzCgB,SAAS,aAAT,SAAS,GAAT,SAAS,QAyCzB"}
|