@vived/core 1.2.1 → 1.2.3
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/dist/cjs/AppObject/AppObject.js +59 -0
- package/dist/cjs/AppObject/AppObject.js.map +1 -0
- package/dist/cjs/AppObject/AppObject.test.js +113 -0
- package/dist/cjs/AppObject/AppObject.test.js.map +1 -0
- package/dist/cjs/AppObject/AppObjectComponent.js +82 -0
- package/dist/cjs/AppObject/AppObjectComponent.js.map +1 -0
- package/dist/cjs/AppObject/AppObjectComponent.test.js +132 -0
- package/dist/cjs/AppObject/AppObjectComponent.test.js.map +1 -0
- package/dist/cjs/AppObject/AppObjectController.js +12 -0
- package/dist/cjs/AppObject/AppObjectController.js.map +1 -0
- package/dist/cjs/AppObject/AppObjectEntity.js +38 -0
- package/dist/cjs/AppObject/AppObjectEntity.js.map +1 -0
- package/dist/cjs/AppObject/AppObjectEntity.test.js +108 -0
- package/dist/cjs/AppObject/AppObjectEntity.test.js.map +1 -0
- package/dist/cjs/AppObject/AppObjectEntityRepo.js +56 -0
- package/dist/cjs/AppObject/AppObjectEntityRepo.js.map +1 -0
- package/dist/cjs/AppObject/AppObjectEntityRepo.test.js +149 -0
- package/dist/cjs/AppObject/AppObjectEntityRepo.test.js.map +1 -0
- package/dist/cjs/AppObject/AppObjectPM.js +40 -0
- package/dist/cjs/AppObject/AppObjectPM.js.map +1 -0
- package/dist/cjs/AppObject/AppObjectPM.test.js +103 -0
- package/dist/cjs/AppObject/AppObjectPM.test.js.map +1 -0
- package/dist/cjs/AppObject/AppObjectRepo.js +133 -0
- package/dist/cjs/AppObject/AppObjectRepo.js.map +1 -0
- package/dist/cjs/AppObject/AppObjectRepo.test.js +213 -0
- package/dist/cjs/AppObject/AppObjectRepo.test.js.map +1 -0
- package/dist/cjs/AppObject/AppObjectUC.js +12 -0
- package/dist/cjs/AppObject/AppObjectUC.js.map +1 -0
- package/dist/cjs/AppObject/AppObjectView.js +12 -0
- package/dist/cjs/AppObject/AppObjectView.js.map +1 -0
- package/dist/cjs/AppObject/getSingletonComponent.js +7 -0
- package/dist/cjs/AppObject/getSingletonComponent.js.map +1 -0
- package/dist/cjs/AppObject/getSingletonComponent.test.js +13 -0
- package/dist/cjs/AppObject/getSingletonComponent.test.js.map +1 -0
- package/dist/cjs/AppObject/index.js +27 -0
- package/dist/cjs/AppObject/index.js.map +1 -0
- package/dist/cjs/AppObject/printAppObjectDetails.js +18 -0
- package/dist/cjs/AppObject/printAppObjectDetails.js.map +1 -0
- package/dist/cjs/Entities/MemoizedAngle.js +23 -0
- package/dist/cjs/Entities/MemoizedAngle.js.map +1 -0
- package/dist/cjs/Entities/MemoizedAngle.test.js +30 -0
- package/dist/cjs/Entities/MemoizedAngle.test.js.map +1 -0
- package/dist/cjs/Entities/MemoizedBoolean.js +23 -0
- package/dist/cjs/Entities/MemoizedBoolean.js.map +1 -0
- package/dist/cjs/Entities/MemoizedBoolean.test.js +34 -0
- package/dist/cjs/Entities/MemoizedBoolean.test.js.map +1 -0
- package/dist/cjs/Entities/MemoizedColor.js +24 -0
- package/dist/cjs/Entities/MemoizedColor.js.map +1 -0
- package/dist/cjs/Entities/MemoizedColor.test.js +32 -0
- package/dist/cjs/Entities/MemoizedColor.test.js.map +1 -0
- package/dist/cjs/Entities/MemoizedNumber.js +23 -0
- package/dist/cjs/Entities/MemoizedNumber.js.map +1 -0
- package/dist/cjs/Entities/MemoizedNumber.test.js +29 -0
- package/dist/cjs/Entities/MemoizedNumber.test.js.map +1 -0
- package/dist/cjs/Entities/MemoizedQuaternion.js +24 -0
- package/dist/cjs/Entities/MemoizedQuaternion.js.map +1 -0
- package/dist/cjs/Entities/MemoizedQuaternion.test.js +32 -0
- package/dist/cjs/Entities/MemoizedQuaternion.test.js.map +1 -0
- package/dist/cjs/Entities/MemoizedString.js +23 -0
- package/dist/cjs/Entities/MemoizedString.js.map +1 -0
- package/dist/cjs/Entities/MemoizedString.test.js +29 -0
- package/dist/cjs/Entities/MemoizedString.test.js.map +1 -0
- package/dist/cjs/Entities/MemoizedVector2.js +24 -0
- package/dist/cjs/Entities/MemoizedVector2.js.map +1 -0
- package/dist/cjs/Entities/MemoizedVector2.test.js +32 -0
- package/dist/cjs/Entities/MemoizedVector2.test.js.map +1 -0
- package/dist/cjs/Entities/MemoizedVector3.js +24 -0
- package/dist/cjs/Entities/MemoizedVector3.js.map +1 -0
- package/dist/cjs/Entities/MemoizedVector3.test.js +32 -0
- package/dist/cjs/Entities/MemoizedVector3.test.js.map +1 -0
- package/dist/cjs/Entities/ObservableEntity.js +20 -0
- package/dist/cjs/Entities/ObservableEntity.js.map +1 -0
- package/dist/cjs/Entities/ObservableEntity.test.js +25 -0
- package/dist/cjs/Entities/ObservableEntity.test.js.map +1 -0
- package/dist/cjs/Entities/ObserverList.js +27 -0
- package/dist/cjs/Entities/ObserverList.js.map +1 -0
- package/dist/cjs/Entities/ObserverList.test.js +44 -0
- package/dist/cjs/Entities/ObserverList.test.js.map +1 -0
- package/dist/cjs/Entities/RangedNumber.js +36 -0
- package/dist/cjs/Entities/RangedNumber.js.map +1 -0
- package/dist/cjs/Entities/RangedNumber.test.js +96 -0
- package/dist/cjs/Entities/RangedNumber.test.js.map +1 -0
- package/dist/cjs/Entities/index.js +28 -0
- package/dist/cjs/Entities/index.js.map +1 -0
- package/dist/cjs/Types/AppBoundary.js +3 -0
- package/dist/cjs/Types/AppBoundary.js.map +1 -0
- package/dist/cjs/Types/EaseFn.js +3 -0
- package/dist/cjs/Types/EaseFn.js.map +1 -0
- package/dist/cjs/Types/PmAdapter.js +3 -0
- package/dist/cjs/Types/PmAdapter.js.map +1 -0
- package/dist/cjs/Types/SingletonPmAdapter.js +3 -0
- package/dist/cjs/Types/SingletonPmAdapter.js.map +1 -0
- package/dist/cjs/Types/index.js +21 -0
- package/dist/cjs/Types/index.js.map +1 -0
- package/dist/cjs/Utilities/LengthConverters.js +21 -0
- package/dist/cjs/Utilities/LengthConverters.js.map +1 -0
- package/dist/cjs/Utilities/LengthConverters.test.js +24 -0
- package/dist/cjs/Utilities/LengthConverters.test.js.map +1 -0
- package/dist/cjs/Utilities/LerpNumber.js +85 -0
- package/dist/cjs/Utilities/LerpNumber.js.map +1 -0
- package/dist/cjs/Utilities/LerpNumber.test.js +90 -0
- package/dist/cjs/Utilities/LerpNumber.test.js.map +1 -0
- package/dist/cjs/Utilities/degreesToRadians.js +7 -0
- package/dist/cjs/Utilities/degreesToRadians.js.map +1 -0
- package/dist/cjs/Utilities/degreesToRadians.test.js +9 -0
- package/dist/cjs/Utilities/degreesToRadians.test.js.map +1 -0
- package/dist/cjs/Utilities/easeFunctions.js +208 -0
- package/dist/cjs/Utilities/easeFunctions.js.map +1 -0
- package/dist/cjs/Utilities/easeFunctions.test.js +209 -0
- package/dist/cjs/Utilities/easeFunctions.test.js.map +1 -0
- package/dist/cjs/Utilities/generateUniqueID.js +8 -0
- package/dist/cjs/Utilities/generateUniqueID.js.map +1 -0
- package/dist/cjs/Utilities/index.js +22 -0
- package/dist/cjs/Utilities/index.js.map +1 -0
- package/dist/cjs/Utilities/interpolateNumber.js +18 -0
- package/dist/cjs/Utilities/interpolateNumber.js.map +1 -0
- package/dist/cjs/Utilities/interpolateNumber.test.js +26 -0
- package/dist/cjs/Utilities/interpolateNumber.test.js.map +1 -0
- package/dist/cjs/ValueObjects/Angle.js +47 -0
- package/dist/cjs/ValueObjects/Angle.js.map +1 -0
- package/dist/cjs/ValueObjects/Angle.test.js +28 -0
- package/dist/cjs/ValueObjects/Angle.test.js.map +1 -0
- package/dist/cjs/ValueObjects/Color.js +859 -0
- package/dist/cjs/ValueObjects/Color.js.map +1 -0
- package/dist/cjs/ValueObjects/Color.test.js +147 -0
- package/dist/cjs/ValueObjects/Color.test.js.map +1 -0
- package/dist/cjs/ValueObjects/LineSegment2D.js +72 -0
- package/dist/cjs/ValueObjects/LineSegment2D.js.map +1 -0
- package/dist/cjs/ValueObjects/LineSegment2D.test.js +102 -0
- package/dist/cjs/ValueObjects/LineSegment2D.test.js.map +1 -0
- package/dist/cjs/ValueObjects/Matrix.js +466 -0
- package/dist/cjs/ValueObjects/Matrix.js.map +1 -0
- package/dist/cjs/ValueObjects/Matrix.test.js +385 -0
- package/dist/cjs/ValueObjects/Matrix.test.js.map +1 -0
- package/dist/cjs/ValueObjects/ParametricLine.js +77 -0
- package/dist/cjs/ValueObjects/ParametricLine.js.map +1 -0
- package/dist/cjs/ValueObjects/ParametricLine.test.js +126 -0
- package/dist/cjs/ValueObjects/ParametricLine.test.js.map +1 -0
- package/dist/cjs/ValueObjects/ParametricPlane.js +65 -0
- package/dist/cjs/ValueObjects/ParametricPlane.js.map +1 -0
- package/dist/cjs/ValueObjects/ParametricPlane.test.js +101 -0
- package/dist/cjs/ValueObjects/ParametricPlane.test.js.map +1 -0
- package/dist/cjs/ValueObjects/Quaternion.js +290 -0
- package/dist/cjs/ValueObjects/Quaternion.js.map +1 -0
- package/dist/cjs/ValueObjects/Quaternion.test.js +240 -0
- package/dist/cjs/ValueObjects/Quaternion.test.js.map +1 -0
- package/dist/cjs/ValueObjects/Rectangle.js +24 -0
- package/dist/cjs/ValueObjects/Rectangle.js.map +1 -0
- package/dist/cjs/ValueObjects/Rectangle.test.js +32 -0
- package/dist/cjs/ValueObjects/Rectangle.test.js.map +1 -0
- package/dist/cjs/ValueObjects/Vector2.js +184 -0
- package/dist/cjs/ValueObjects/Vector2.js.map +1 -0
- package/dist/cjs/ValueObjects/Vector2.test.js +136 -0
- package/dist/cjs/ValueObjects/Vector2.test.js.map +1 -0
- package/dist/cjs/ValueObjects/Vector3.js +231 -0
- package/dist/cjs/ValueObjects/Vector3.js.map +1 -0
- package/dist/cjs/ValueObjects/Vector3.test.js +188 -0
- package/dist/cjs/ValueObjects/Vector3.test.js.map +1 -0
- package/dist/cjs/ValueObjects/index.js +27 -0
- package/dist/cjs/ValueObjects/index.js.map +1 -0
- package/dist/cjs/index.js +22 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/esm/AppObject/AppObject.js +54 -0
- package/dist/esm/AppObject/AppObject.js.map +1 -0
- package/dist/esm/AppObject/AppObject.test.js +110 -0
- package/dist/esm/AppObject/AppObject.test.js.map +1 -0
- package/dist/esm/AppObject/AppObjectComponent.js +78 -0
- package/dist/esm/AppObject/AppObjectComponent.js.map +1 -0
- package/dist/esm/AppObject/AppObjectComponent.test.js +130 -0
- package/dist/esm/AppObject/AppObjectComponent.test.js.map +1 -0
- package/dist/esm/AppObject/AppObjectController.js +8 -0
- package/dist/esm/AppObject/AppObjectController.js.map +1 -0
- package/dist/esm/AppObject/AppObjectEntity.js +34 -0
- package/dist/esm/AppObject/AppObjectEntity.js.map +1 -0
- package/dist/esm/AppObject/AppObjectEntity.test.js +106 -0
- package/dist/esm/AppObject/AppObjectEntity.test.js.map +1 -0
- package/dist/esm/AppObject/AppObjectEntityRepo.js +52 -0
- package/dist/esm/AppObject/AppObjectEntityRepo.js.map +1 -0
- package/dist/esm/AppObject/AppObjectEntityRepo.test.js +147 -0
- package/dist/esm/AppObject/AppObjectEntityRepo.test.js.map +1 -0
- package/dist/esm/AppObject/AppObjectPM.js +36 -0
- package/dist/esm/AppObject/AppObjectPM.js.map +1 -0
- package/dist/esm/AppObject/AppObjectPM.test.js +101 -0
- package/dist/esm/AppObject/AppObjectPM.test.js.map +1 -0
- package/dist/esm/AppObject/AppObjectRepo.js +128 -0
- package/dist/esm/AppObject/AppObjectRepo.js.map +1 -0
- package/dist/esm/AppObject/AppObjectRepo.test.js +211 -0
- package/dist/esm/AppObject/AppObjectRepo.test.js.map +1 -0
- package/dist/esm/AppObject/AppObjectUC.js +8 -0
- package/dist/esm/AppObject/AppObjectUC.js.map +1 -0
- package/dist/esm/AppObject/AppObjectView.js +8 -0
- package/dist/esm/AppObject/AppObjectView.js.map +1 -0
- package/dist/esm/AppObject/getSingletonComponent.js +4 -0
- package/dist/esm/AppObject/getSingletonComponent.js.map +1 -0
- package/dist/esm/AppObject/getSingletonComponent.test.js +11 -0
- package/dist/esm/AppObject/getSingletonComponent.test.js.map +1 -0
- package/dist/esm/AppObject/index.js +11 -0
- package/dist/esm/AppObject/index.js.map +1 -0
- package/dist/esm/AppObject/printAppObjectDetails.js +15 -0
- package/dist/esm/AppObject/printAppObjectDetails.js.map +1 -0
- package/dist/esm/Entities/MemoizedAngle.js +19 -0
- package/dist/esm/Entities/MemoizedAngle.js.map +1 -0
- package/dist/esm/Entities/MemoizedAngle.test.js +28 -0
- package/dist/esm/Entities/MemoizedAngle.test.js.map +1 -0
- package/dist/esm/Entities/MemoizedBoolean.js +19 -0
- package/dist/esm/Entities/MemoizedBoolean.js.map +1 -0
- package/dist/esm/Entities/MemoizedBoolean.test.js +32 -0
- package/dist/esm/Entities/MemoizedBoolean.test.js.map +1 -0
- package/dist/esm/Entities/MemoizedColor.js +20 -0
- package/dist/esm/Entities/MemoizedColor.js.map +1 -0
- package/dist/esm/Entities/MemoizedColor.test.js +30 -0
- package/dist/esm/Entities/MemoizedColor.test.js.map +1 -0
- package/dist/esm/Entities/MemoizedNumber.js +19 -0
- package/dist/esm/Entities/MemoizedNumber.js.map +1 -0
- package/dist/esm/Entities/MemoizedNumber.test.js +27 -0
- package/dist/esm/Entities/MemoizedNumber.test.js.map +1 -0
- package/dist/esm/Entities/MemoizedQuaternion.js +20 -0
- package/dist/esm/Entities/MemoizedQuaternion.js.map +1 -0
- package/dist/esm/Entities/MemoizedQuaternion.test.js +30 -0
- package/dist/esm/Entities/MemoizedQuaternion.test.js.map +1 -0
- package/dist/esm/Entities/MemoizedString.js +19 -0
- package/dist/esm/Entities/MemoizedString.js.map +1 -0
- package/dist/esm/Entities/MemoizedString.test.js +27 -0
- package/dist/esm/Entities/MemoizedString.test.js.map +1 -0
- package/dist/esm/Entities/MemoizedVector2.js +20 -0
- package/dist/esm/Entities/MemoizedVector2.js.map +1 -0
- package/dist/esm/Entities/MemoizedVector2.test.js +30 -0
- package/dist/esm/Entities/MemoizedVector2.test.js.map +1 -0
- package/dist/esm/Entities/MemoizedVector3.js +20 -0
- package/dist/esm/Entities/MemoizedVector3.js.map +1 -0
- package/dist/esm/Entities/MemoizedVector3.test.js +30 -0
- package/dist/esm/Entities/MemoizedVector3.test.js.map +1 -0
- package/dist/esm/Entities/ObservableEntity.js +16 -0
- package/dist/esm/Entities/ObservableEntity.js.map +1 -0
- package/dist/esm/Entities/ObservableEntity.test.js +23 -0
- package/dist/esm/Entities/ObservableEntity.test.js.map +1 -0
- package/dist/esm/Entities/ObserverList.js +23 -0
- package/dist/esm/Entities/ObserverList.js.map +1 -0
- package/dist/esm/Entities/ObserverList.test.js +42 -0
- package/dist/esm/Entities/ObserverList.test.js.map +1 -0
- package/dist/esm/Entities/RangedNumber.js +32 -0
- package/dist/esm/Entities/RangedNumber.js.map +1 -0
- package/dist/esm/Entities/RangedNumber.test.js +94 -0
- package/dist/esm/Entities/RangedNumber.test.js.map +1 -0
- package/{src/Entities/index.ts → dist/esm/Entities/index.js} +12 -11
- package/dist/esm/Entities/index.js.map +1 -0
- package/dist/esm/Types/AppBoundary.js +2 -0
- package/dist/esm/Types/AppBoundary.js.map +1 -0
- package/dist/esm/Types/EaseFn.js +2 -0
- package/dist/esm/Types/EaseFn.js.map +1 -0
- package/dist/esm/Types/PmAdapter.js +2 -0
- package/dist/esm/Types/PmAdapter.js.map +1 -0
- package/dist/esm/Types/SingletonPmAdapter.js +2 -0
- package/dist/esm/Types/SingletonPmAdapter.js.map +1 -0
- package/{src/Types/index.ts → dist/esm/Types/index.js} +5 -4
- package/dist/esm/Types/index.js.map +1 -0
- package/dist/esm/Utilities/LengthConverters.js +15 -0
- package/dist/esm/Utilities/LengthConverters.js.map +1 -0
- package/dist/esm/Utilities/LengthConverters.test.js +22 -0
- package/dist/esm/Utilities/LengthConverters.test.js.map +1 -0
- package/dist/esm/Utilities/LerpNumber.js +81 -0
- package/dist/esm/Utilities/LerpNumber.js.map +1 -0
- package/dist/esm/Utilities/LerpNumber.test.js +88 -0
- package/dist/esm/Utilities/LerpNumber.test.js.map +1 -0
- package/dist/esm/Utilities/degreesToRadians.js +4 -0
- package/dist/esm/Utilities/degreesToRadians.js.map +1 -0
- package/dist/esm/Utilities/degreesToRadians.test.js +7 -0
- package/dist/esm/Utilities/degreesToRadians.test.js.map +1 -0
- package/dist/esm/Utilities/easeFunctions.js +183 -0
- package/dist/esm/Utilities/easeFunctions.js.map +1 -0
- package/dist/esm/Utilities/easeFunctions.test.js +207 -0
- package/dist/esm/Utilities/easeFunctions.test.js.map +1 -0
- package/dist/esm/Utilities/generateUniqueID.js +5 -0
- package/dist/esm/Utilities/generateUniqueID.js.map +1 -0
- package/{src/Utilities/index.ts → dist/esm/Utilities/index.js} +6 -6
- package/dist/esm/Utilities/index.js.map +1 -0
- package/dist/esm/Utilities/interpolateNumber.js +15 -0
- package/dist/esm/Utilities/interpolateNumber.js.map +1 -0
- package/dist/esm/Utilities/interpolateNumber.test.js +24 -0
- package/dist/esm/Utilities/interpolateNumber.test.js.map +1 -0
- package/dist/esm/ValueObjects/Angle.js +43 -0
- package/dist/esm/ValueObjects/Angle.js.map +1 -0
- package/dist/esm/ValueObjects/Angle.test.js +26 -0
- package/dist/esm/ValueObjects/Angle.test.js.map +1 -0
- package/dist/esm/ValueObjects/Color.js +855 -0
- package/dist/esm/ValueObjects/Color.js.map +1 -0
- package/dist/esm/ValueObjects/Color.test.js +145 -0
- package/dist/esm/ValueObjects/Color.test.js.map +1 -0
- package/dist/esm/ValueObjects/LineSegment2D.js +68 -0
- package/dist/esm/ValueObjects/LineSegment2D.js.map +1 -0
- package/dist/esm/ValueObjects/LineSegment2D.test.js +100 -0
- package/dist/esm/ValueObjects/LineSegment2D.test.js.map +1 -0
- package/dist/esm/ValueObjects/Matrix.js +462 -0
- package/dist/esm/ValueObjects/Matrix.js.map +1 -0
- package/dist/esm/ValueObjects/Matrix.test.js +383 -0
- package/dist/esm/ValueObjects/Matrix.test.js.map +1 -0
- package/dist/esm/ValueObjects/ParametricLine.js +73 -0
- package/dist/esm/ValueObjects/ParametricLine.js.map +1 -0
- package/dist/esm/ValueObjects/ParametricLine.test.js +124 -0
- package/dist/esm/ValueObjects/ParametricLine.test.js.map +1 -0
- package/dist/esm/ValueObjects/ParametricPlane.js +61 -0
- package/dist/esm/ValueObjects/ParametricPlane.js.map +1 -0
- package/dist/esm/ValueObjects/ParametricPlane.test.js +99 -0
- package/dist/esm/ValueObjects/ParametricPlane.test.js.map +1 -0
- package/dist/esm/ValueObjects/Quaternion.js +286 -0
- package/dist/esm/ValueObjects/Quaternion.js.map +1 -0
- package/dist/esm/ValueObjects/Quaternion.test.js +238 -0
- package/dist/esm/ValueObjects/Quaternion.test.js.map +1 -0
- package/dist/esm/ValueObjects/Rectangle.js +20 -0
- package/dist/esm/ValueObjects/Rectangle.js.map +1 -0
- package/dist/esm/ValueObjects/Rectangle.test.js +30 -0
- package/dist/esm/ValueObjects/Rectangle.test.js.map +1 -0
- package/dist/esm/ValueObjects/Vector2.js +180 -0
- package/dist/esm/ValueObjects/Vector2.js.map +1 -0
- package/dist/esm/ValueObjects/Vector2.test.js +134 -0
- package/dist/esm/ValueObjects/Vector2.test.js.map +1 -0
- package/dist/esm/ValueObjects/Vector3.js +227 -0
- package/dist/esm/ValueObjects/Vector3.js.map +1 -0
- package/dist/esm/ValueObjects/Vector3.test.js +186 -0
- package/dist/esm/ValueObjects/Vector3.test.js.map +1 -0
- package/{src/ValueObjects/index.ts → dist/esm/ValueObjects/index.js} +11 -14
- package/dist/esm/ValueObjects/index.js.map +1 -0
- package/{src/index.ts → dist/esm/index.js} +6 -5
- package/dist/esm/index.js.map +1 -0
- package/dist/types/AppObject/AppObject.d.ts +15 -0
- package/dist/types/AppObject/AppObject.d.ts.map +1 -0
- package/dist/types/AppObject/AppObject.test.d.ts +7 -0
- package/dist/types/AppObject/AppObject.test.d.ts.map +1 -0
- package/dist/types/AppObject/AppObjectComponent.d.ts +26 -0
- package/dist/types/AppObject/AppObjectComponent.d.ts.map +1 -0
- package/dist/types/AppObject/AppObjectComponent.test.d.ts +2 -0
- package/dist/types/AppObject/AppObjectComponent.test.d.ts.map +1 -0
- package/dist/types/AppObject/AppObjectController.d.ts +5 -0
- package/dist/types/AppObject/AppObjectController.d.ts.map +1 -0
- package/dist/types/AppObject/AppObjectEntity.d.ts +16 -0
- package/dist/types/AppObject/AppObjectEntity.d.ts.map +1 -0
- package/dist/types/AppObject/AppObjectEntity.test.d.ts +2 -0
- package/dist/types/AppObject/AppObjectEntity.test.d.ts.map +1 -0
- package/dist/types/AppObject/AppObjectEntityRepo.d.ts +16 -0
- package/dist/types/AppObject/AppObjectEntityRepo.d.ts.map +1 -0
- package/dist/types/AppObject/AppObjectEntityRepo.test.d.ts +2 -0
- package/dist/types/AppObject/AppObjectEntityRepo.test.d.ts.map +1 -0
- package/dist/types/AppObject/AppObjectPM.d.ts +13 -0
- package/dist/types/AppObject/AppObjectPM.d.ts.map +1 -0
- package/dist/types/AppObject/AppObjectPM.test.d.ts +2 -0
- package/dist/types/AppObject/AppObjectPM.test.d.ts.map +1 -0
- package/dist/types/AppObject/AppObjectRepo.d.ts +26 -0
- package/dist/types/AppObject/AppObjectRepo.d.ts.map +1 -0
- package/dist/types/AppObject/AppObjectRepo.test.d.ts +2 -0
- package/dist/types/AppObject/AppObjectRepo.test.d.ts.map +1 -0
- package/dist/types/AppObject/AppObjectUC.d.ts +5 -0
- package/dist/types/AppObject/AppObjectUC.d.ts.map +1 -0
- package/dist/types/AppObject/AppObjectView.d.ts +5 -0
- package/dist/types/AppObject/AppObjectView.d.ts.map +1 -0
- package/dist/types/AppObject/getSingletonComponent.d.ts +4 -0
- package/dist/types/AppObject/getSingletonComponent.d.ts.map +1 -0
- package/dist/types/AppObject/getSingletonComponent.test.d.ts +2 -0
- package/dist/types/AppObject/getSingletonComponent.test.d.ts.map +1 -0
- package/dist/types/AppObject/index.d.ts +11 -0
- package/dist/types/AppObject/index.d.ts.map +1 -0
- package/dist/types/AppObject/printAppObjectDetails.d.ts +3 -0
- package/dist/types/AppObject/printAppObjectDetails.d.ts.map +1 -0
- package/dist/types/Entities/MemoizedAngle.d.ts +10 -0
- package/dist/types/Entities/MemoizedAngle.d.ts.map +1 -0
- package/dist/types/Entities/MemoizedAngle.test.d.ts +2 -0
- package/dist/types/Entities/MemoizedAngle.test.d.ts.map +1 -0
- package/dist/types/Entities/MemoizedBoolean.d.ts +9 -0
- package/dist/types/Entities/MemoizedBoolean.d.ts.map +1 -0
- package/dist/types/Entities/MemoizedBoolean.test.d.ts +2 -0
- package/dist/types/Entities/MemoizedBoolean.test.d.ts.map +1 -0
- package/dist/types/Entities/MemoizedColor.d.ts +10 -0
- package/dist/types/Entities/MemoizedColor.d.ts.map +1 -0
- package/dist/types/Entities/MemoizedColor.test.d.ts +2 -0
- package/dist/types/Entities/MemoizedColor.test.d.ts.map +1 -0
- package/dist/types/Entities/MemoizedNumber.d.ts +9 -0
- package/dist/types/Entities/MemoizedNumber.d.ts.map +1 -0
- package/dist/types/Entities/MemoizedNumber.test.d.ts +2 -0
- package/dist/types/Entities/MemoizedNumber.test.d.ts.map +1 -0
- package/dist/types/Entities/MemoizedQuaternion.d.ts +10 -0
- package/dist/types/Entities/MemoizedQuaternion.d.ts.map +1 -0
- package/dist/types/Entities/MemoizedQuaternion.test.d.ts +2 -0
- package/dist/types/Entities/MemoizedQuaternion.test.d.ts.map +1 -0
- package/dist/types/Entities/MemoizedString.d.ts +9 -0
- package/dist/types/Entities/MemoizedString.d.ts.map +1 -0
- package/dist/types/Entities/MemoizedString.test.d.ts +2 -0
- package/dist/types/Entities/MemoizedString.test.d.ts.map +1 -0
- package/dist/types/Entities/MemoizedVector2.d.ts +10 -0
- package/dist/types/Entities/MemoizedVector2.d.ts.map +1 -0
- package/dist/types/Entities/MemoizedVector2.test.d.ts +2 -0
- package/dist/types/Entities/MemoizedVector2.test.d.ts.map +1 -0
- package/dist/types/Entities/MemoizedVector3.d.ts +10 -0
- package/dist/types/Entities/MemoizedVector3.d.ts.map +1 -0
- package/dist/types/Entities/MemoizedVector3.test.d.ts +2 -0
- package/dist/types/Entities/MemoizedVector3.test.d.ts.map +1 -0
- package/dist/types/Entities/ObservableEntity.d.ts +8 -0
- package/dist/types/Entities/ObservableEntity.d.ts.map +1 -0
- package/dist/types/Entities/ObservableEntity.test.d.ts +2 -0
- package/dist/types/Entities/ObservableEntity.test.d.ts.map +1 -0
- package/dist/types/Entities/ObserverList.d.ts +8 -0
- package/dist/types/Entities/ObserverList.d.ts.map +1 -0
- package/dist/types/Entities/ObserverList.test.d.ts +2 -0
- package/dist/types/Entities/ObserverList.test.d.ts.map +1 -0
- package/dist/types/Entities/RangedNumber.d.ts +17 -0
- package/dist/types/Entities/RangedNumber.d.ts.map +1 -0
- package/dist/types/Entities/RangedNumber.test.d.ts +2 -0
- package/dist/types/Entities/RangedNumber.test.d.ts.map +1 -0
- package/dist/types/Entities/index.d.ts +12 -0
- package/dist/types/Entities/index.d.ts.map +1 -0
- package/dist/types/Types/AppBoundary.d.ts +11 -0
- package/dist/types/Types/AppBoundary.d.ts.map +1 -0
- package/dist/types/Types/EaseFn.d.ts +2 -0
- package/dist/types/Types/EaseFn.d.ts.map +1 -0
- package/dist/types/Types/PmAdapter.d.ts +7 -0
- package/dist/types/Types/PmAdapter.d.ts.map +1 -0
- package/dist/types/Types/SingletonPmAdapter.d.ts +7 -0
- package/dist/types/Types/SingletonPmAdapter.d.ts.map +1 -0
- package/dist/types/Types/index.d.ts +5 -0
- package/dist/types/Types/index.d.ts.map +1 -0
- package/dist/types/Utilities/LengthConverters.d.ts +5 -0
- package/dist/types/Utilities/LengthConverters.d.ts.map +1 -0
- package/dist/types/Utilities/LengthConverters.test.d.ts +2 -0
- package/dist/types/Utilities/LengthConverters.test.d.ts.map +1 -0
- package/dist/types/Utilities/LerpNumber.d.ts +57 -0
- package/dist/types/Utilities/LerpNumber.d.ts.map +1 -0
- package/dist/types/Utilities/LerpNumber.test.d.ts +2 -0
- package/dist/types/Utilities/LerpNumber.test.d.ts.map +1 -0
- package/dist/types/Utilities/degreesToRadians.d.ts +2 -0
- package/dist/types/Utilities/degreesToRadians.d.ts.map +1 -0
- package/dist/types/Utilities/degreesToRadians.test.d.ts +2 -0
- package/dist/types/Utilities/degreesToRadians.test.d.ts.map +1 -0
- package/dist/types/Utilities/easeFunctions.d.ts +24 -0
- package/dist/types/Utilities/easeFunctions.d.ts.map +1 -0
- package/dist/types/Utilities/easeFunctions.test.d.ts +2 -0
- package/dist/types/Utilities/easeFunctions.test.d.ts.map +1 -0
- package/dist/types/Utilities/generateUniqueID.d.ts +2 -0
- package/dist/types/Utilities/generateUniqueID.d.ts.map +1 -0
- package/dist/types/Utilities/index.d.ts +6 -0
- package/dist/types/Utilities/index.d.ts.map +1 -0
- package/dist/types/Utilities/interpolateNumber.d.ts +2 -0
- package/dist/types/Utilities/interpolateNumber.d.ts.map +1 -0
- package/dist/types/Utilities/interpolateNumber.test.d.ts +2 -0
- package/dist/types/Utilities/interpolateNumber.test.d.ts.map +1 -0
- package/dist/types/ValueObjects/Angle.d.ts +27 -0
- package/dist/types/ValueObjects/Angle.d.ts.map +1 -0
- package/dist/types/ValueObjects/Angle.test.d.ts +2 -0
- package/dist/types/ValueObjects/Angle.test.d.ts.map +1 -0
- package/dist/types/ValueObjects/Color.d.ts +83 -0
- package/dist/types/ValueObjects/Color.d.ts.map +1 -0
- package/dist/types/ValueObjects/Color.test.d.ts +2 -0
- package/dist/types/ValueObjects/Color.test.d.ts.map +1 -0
- package/dist/types/ValueObjects/LineSegment2D.d.ts +12 -0
- package/dist/types/ValueObjects/LineSegment2D.d.ts.map +1 -0
- package/dist/types/ValueObjects/LineSegment2D.test.d.ts +2 -0
- package/dist/types/ValueObjects/LineSegment2D.test.d.ts.map +1 -0
- package/dist/types/ValueObjects/Matrix.d.ts +124 -0
- package/dist/types/ValueObjects/Matrix.d.ts.map +1 -0
- package/dist/types/ValueObjects/Matrix.test.d.ts +2 -0
- package/dist/types/ValueObjects/Matrix.test.d.ts.map +1 -0
- package/dist/types/ValueObjects/ParametricLine.d.ts +31 -0
- package/dist/types/ValueObjects/ParametricLine.d.ts.map +1 -0
- package/dist/types/ValueObjects/ParametricLine.test.d.ts +2 -0
- package/dist/types/ValueObjects/ParametricLine.test.d.ts.map +1 -0
- package/dist/types/ValueObjects/ParametricPlane.d.ts +21 -0
- package/dist/types/ValueObjects/ParametricPlane.d.ts.map +1 -0
- package/dist/types/ValueObjects/ParametricPlane.test.d.ts +2 -0
- package/dist/types/ValueObjects/ParametricPlane.test.d.ts.map +1 -0
- package/dist/types/ValueObjects/Quaternion.d.ts +113 -0
- package/dist/types/ValueObjects/Quaternion.d.ts.map +1 -0
- package/dist/types/ValueObjects/Quaternion.test.d.ts +2 -0
- package/dist/types/ValueObjects/Quaternion.test.d.ts.map +1 -0
- package/dist/types/ValueObjects/Rectangle.d.ts +16 -0
- package/dist/types/ValueObjects/Rectangle.d.ts.map +1 -0
- package/dist/types/ValueObjects/Rectangle.test.d.ts +2 -0
- package/dist/types/ValueObjects/Rectangle.test.d.ts.map +1 -0
- package/dist/types/ValueObjects/Vector2.d.ts +121 -0
- package/dist/types/ValueObjects/Vector2.d.ts.map +1 -0
- package/dist/types/ValueObjects/Vector2.test.d.ts +2 -0
- package/dist/types/ValueObjects/Vector2.test.d.ts.map +1 -0
- package/dist/types/ValueObjects/Vector3.d.ts +150 -0
- package/dist/types/ValueObjects/Vector3.d.ts.map +1 -0
- package/dist/types/ValueObjects/Vector3.test.d.ts +2 -0
- package/dist/types/ValueObjects/Vector3.test.d.ts.map +1 -0
- package/dist/types/ValueObjects/index.d.ts +11 -0
- package/dist/types/ValueObjects/index.d.ts.map +1 -0
- package/dist/types/index.d.ts +6 -0
- package/dist/types/index.d.ts.map +1 -0
- package/package.json +10 -5
- package/babel.config.js +0 -12
- package/jestconfig.json +0 -10
- package/src/AppObject/AppObject.test.ts +0 -158
- package/src/AppObject/AppObject.ts +0 -83
- package/src/AppObject/AppObjectComponent.test.ts +0 -219
- package/src/AppObject/AppObjectComponent.ts +0 -100
- package/src/AppObject/AppObjectController.ts +0 -8
- package/src/AppObject/AppObjectEntity.test.ts +0 -151
- package/src/AppObject/AppObjectEntity.ts +0 -45
- package/src/AppObject/AppObjectEntityRepo.test.ts +0 -211
- package/src/AppObject/AppObjectEntityRepo.ts +0 -61
- package/src/AppObject/AppObjectPM.test.ts +0 -152
- package/src/AppObject/AppObjectPM.ts +0 -43
- package/src/AppObject/AppObjectRepo.test.ts +0 -317
- package/src/AppObject/AppObjectRepo.ts +0 -203
- package/src/AppObject/AppObjectUC.ts +0 -5
- package/src/AppObject/AppObjectView.ts +0 -5
- package/src/AppObject/getSingletonComponent.test.ts +0 -17
- package/src/AppObject/getSingletonComponent.ts +0 -9
- package/src/AppObject/index.ts +0 -10
- package/src/AppObject/printAppObjectDetails.ts +0 -17
- package/src/Entities/MemoizedAngle.test.ts +0 -38
- package/src/Entities/MemoizedAngle.ts +0 -25
- package/src/Entities/MemoizedBoolean.test.ts +0 -45
- package/src/Entities/MemoizedBoolean.ts +0 -23
- package/src/Entities/MemoizedColor.test.ts +0 -39
- package/src/Entities/MemoizedColor.ts +0 -27
- package/src/Entities/MemoizedNumber.test.ts +0 -37
- package/src/Entities/MemoizedNumber.ts +0 -23
- package/src/Entities/MemoizedQuaternion.test.ts +0 -39
- package/src/Entities/MemoizedQuaternion.ts +0 -27
- package/src/Entities/MemoizedString.test.ts +0 -37
- package/src/Entities/MemoizedString.ts +0 -23
- package/src/Entities/MemoizedVector2.test.ts +0 -39
- package/src/Entities/MemoizedVector2.ts +0 -27
- package/src/Entities/MemoizedVector3.test.ts +0 -39
- package/src/Entities/MemoizedVector3.ts +0 -27
- package/src/Entities/ObservableEntity.test.ts +0 -28
- package/src/Entities/ObservableEntity.ts +0 -17
- package/src/Entities/ObserverList.test.ts +0 -61
- package/src/Entities/ObserverList.ts +0 -24
- package/src/Entities/RangedNumber.test.ts +0 -118
- package/src/Entities/RangedNumber.ts +0 -45
- package/src/Types/AppBoundary.ts +0 -13
- package/src/Types/EaseFn.ts +0 -1
- package/src/Types/PmAdapter.ts +0 -15
- package/src/Types/SingletonPmAdapter.ts +0 -7
- package/src/Utilities/LengthConverters.test.ts +0 -30
- package/src/Utilities/LengthConverters.ts +0 -18
- package/src/Utilities/LerpNumber.test.ts +0 -109
- package/src/Utilities/LerpNumber.ts +0 -109
- package/src/Utilities/degreesToRadians.test.ts +0 -8
- package/src/Utilities/degreesToRadians.ts +0 -3
- package/src/Utilities/easeFunctions.test.ts +0 -251
- package/src/Utilities/easeFunctions.ts +0 -180
- package/src/Utilities/generateUniqueID.ts +0 -5
- package/src/Utilities/interpolateNumber.test.ts +0 -28
- package/src/Utilities/interpolateNumber.ts +0 -21
- package/src/ValueObjects/Angle.test.ts +0 -30
- package/src/ValueObjects/Angle.ts +0 -47
- package/src/ValueObjects/Color.test.ts +0 -181
- package/src/ValueObjects/Color.ts +0 -891
- package/src/ValueObjects/LineSegment2D.test.ts +0 -144
- package/src/ValueObjects/LineSegment2D.ts +0 -93
- package/src/ValueObjects/Matrix.test.ts +0 -498
- package/src/ValueObjects/Matrix.ts +0 -567
- package/src/ValueObjects/ParametricLine.test.ts +0 -155
- package/src/ValueObjects/ParametricLine.ts +0 -114
- package/src/ValueObjects/ParametricPlane.test.ts +0 -122
- package/src/ValueObjects/ParametricPlane.ts +0 -82
- package/src/ValueObjects/Quaternion.test.ts +0 -356
- package/src/ValueObjects/Quaternion.ts +0 -353
- package/src/ValueObjects/Rectangle.test.ts +0 -32
- package/src/ValueObjects/Rectangle.ts +0 -33
- package/src/ValueObjects/Vector2.test.ts +0 -167
- package/src/ValueObjects/Vector2.ts +0 -209
- package/src/ValueObjects/Vector3.test.ts +0 -228
- package/src/ValueObjects/Vector3.ts +0 -269
- package/tsconfig.build.json +0 -7
- package/tsconfig.cjs.json +0 -9
- package/tsconfig.esm.json +0 -12
- package/tsconfig.json +0 -19
- package/tslint.json +0 -11
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { EaseFn } from "../Types";
|
|
2
|
+
export declare const easeLinear: EaseFn;
|
|
3
|
+
export declare const quadIn: EaseFn;
|
|
4
|
+
export declare const quadOut: EaseFn;
|
|
5
|
+
export declare const quadInOut: EaseFn;
|
|
6
|
+
export declare const cubicIn: EaseFn;
|
|
7
|
+
export declare const cubicOut: EaseFn;
|
|
8
|
+
export declare const cubicInOut: EaseFn;
|
|
9
|
+
export declare const expoIn: EaseFn;
|
|
10
|
+
export declare const expoOut: EaseFn;
|
|
11
|
+
export declare const expoInOut: EaseFn;
|
|
12
|
+
export declare const sinIn: EaseFn;
|
|
13
|
+
export declare const sinOut: EaseFn;
|
|
14
|
+
export declare const sinInOut: EaseFn;
|
|
15
|
+
export declare const quartIn: EaseFn;
|
|
16
|
+
export declare const quartOut: EaseFn;
|
|
17
|
+
export declare const quartInOut: EaseFn;
|
|
18
|
+
export declare const quintIn: EaseFn;
|
|
19
|
+
export declare const quintOut: EaseFn;
|
|
20
|
+
export declare const quintInOut: EaseFn;
|
|
21
|
+
export declare const circIn: EaseFn;
|
|
22
|
+
export declare const circOut: EaseFn;
|
|
23
|
+
export declare const circInOut: EaseFn;
|
|
24
|
+
//# sourceMappingURL=easeFunctions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"easeFunctions.d.ts","sourceRoot":"","sources":["../../../src/Utilities/easeFunctions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAGlC,eAAO,MAAM,UAAU,EAAE,MAKxB,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,MAKpB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,MAKrB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,MASvB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,MAKrB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,MAKtB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,MAWxB,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,MAKpB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,MAKrB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,MAOvB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,MAKnB,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,MAKpB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,MAKtB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,MAKrB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,MAKtB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,MASxB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,MAKrB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,MAKtB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,MASxB,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,MAKpB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,MAKrB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,MASvB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"easeFunctions.test.d.ts","sourceRoot":"","sources":["../../../src/Utilities/easeFunctions.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generateUniqueID.d.ts","sourceRoot":"","sources":["../../../src/Utilities/generateUniqueID.ts"],"names":[],"mappings":"AAEA,wBAAgB,gBAAgB,IAAI,MAAM,CAEzC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Utilities/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interpolateNumber.d.ts","sourceRoot":"","sources":["../../../src/Utilities/interpolateNumber.ts"],"names":[],"mappings":"AAAA,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,MAAM,EACb,GAAG,EAAE,MAAM,EACX,OAAO,EAAE,MAAM,EACf,KAAK,GAAE,OAAe,GACrB,MAAM,CAeR"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interpolateNumber.test.d.ts","sourceRoot":"","sources":["../../../src/Utilities/interpolateNumber.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export declare class Angle {
|
|
2
|
+
/**
|
|
3
|
+
* Creates an angle from degrees
|
|
4
|
+
* @param degrees Angle in degrees
|
|
5
|
+
* @returns The angle
|
|
6
|
+
*/
|
|
7
|
+
static FromDegrees(degrees: number): Angle;
|
|
8
|
+
/**
|
|
9
|
+
* Creates an angle from radians
|
|
10
|
+
* @param radians Angle in radians
|
|
11
|
+
* @returns The angle
|
|
12
|
+
*/
|
|
13
|
+
static FromRadians(radians: number): Angle;
|
|
14
|
+
/**
|
|
15
|
+
* Check to see if two angles are close
|
|
16
|
+
* @param a Angle A
|
|
17
|
+
* @param b Angle B
|
|
18
|
+
* @param tolerance Tolerance for "Close" in degrees. Defaults to 0.001;
|
|
19
|
+
* @returns True if the difference between A and B (in degress) is less than the tolerance
|
|
20
|
+
*/
|
|
21
|
+
static Close(a: Angle, b: Angle, tolerance?: number): boolean;
|
|
22
|
+
private _degrees;
|
|
23
|
+
get degrees(): number;
|
|
24
|
+
get radians(): number;
|
|
25
|
+
private constructor();
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=Angle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Angle.d.ts","sourceRoot":"","sources":["../../../src/ValueObjects/Angle.ts"],"names":[],"mappings":"AAAA,qBAAa,KAAK;IAChB;;;;OAIG;WACW,WAAW,CAAC,OAAO,EAAE,MAAM,GAAG,KAAK;IAIjD;;;;OAIG;WACW,WAAW,CAAC,OAAO,EAAE,MAAM,GAAG,KAAK;IAIjD;;;;;;OAMG;WACW,KAAK,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,SAAS,GAAE,MAAc,GAAG,OAAO;IAQ3E,OAAO,CAAC,QAAQ,CAAK;IACrB,IAAW,OAAO,WAEjB;IAED,IAAW,OAAO,WAEjB;IAED,OAAO;CAGR"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Angle.test.d.ts","sourceRoot":"","sources":["../../../src/ValueObjects/Angle.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
export type BasicColor = "";
|
|
2
|
+
export interface ColorDTO {
|
|
3
|
+
r: number;
|
|
4
|
+
g: number;
|
|
5
|
+
b: number;
|
|
6
|
+
a: number;
|
|
7
|
+
}
|
|
8
|
+
export declare class Color {
|
|
9
|
+
/**
|
|
10
|
+
* Creates a Color from RGBA values
|
|
11
|
+
* @param r Red value, between 0-255
|
|
12
|
+
* @param g Green value, between 0-255
|
|
13
|
+
* @param b Blue value, between 0-255
|
|
14
|
+
* @param a Alpha value, between 0-255
|
|
15
|
+
* @returns The Color
|
|
16
|
+
*/
|
|
17
|
+
static RGBA(r: number, g: number, b: number, a: number): Color;
|
|
18
|
+
/**
|
|
19
|
+
* Creates a Color from RGB values. Alpha is set to 255
|
|
20
|
+
* @param r Red value, between 0-255
|
|
21
|
+
* @param g Green value, between 0-255
|
|
22
|
+
* @param b Blue value, between 0-255
|
|
23
|
+
* @returns The Color
|
|
24
|
+
*/
|
|
25
|
+
static RGB(r: number, g: number, b: number): Color;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @returns Creates a Color from a DTO
|
|
29
|
+
* @param data Data Transfer Object
|
|
30
|
+
*/
|
|
31
|
+
static FromDTO(data: ColorDTO): Color;
|
|
32
|
+
/**
|
|
33
|
+
* Creates a color from a Hex value
|
|
34
|
+
* @param hex The Hex string. Example '808080'
|
|
35
|
+
* @returns The Color
|
|
36
|
+
*/
|
|
37
|
+
static Hex(hex: string): Color;
|
|
38
|
+
/**
|
|
39
|
+
* Creates a color from the X11 standard.
|
|
40
|
+
* @param name X11 name
|
|
41
|
+
* @returns The Color. If the color name is not found, it will return Black.
|
|
42
|
+
*/
|
|
43
|
+
static X11(name: string): Color;
|
|
44
|
+
/**
|
|
45
|
+
* Checks to see if Color A equals Color B
|
|
46
|
+
* @param a Color A
|
|
47
|
+
* @param b Color B
|
|
48
|
+
* @returns True if Color A === Color B
|
|
49
|
+
*/
|
|
50
|
+
static Equal(a: Color, b: Color): boolean;
|
|
51
|
+
readonly r: number;
|
|
52
|
+
readonly g: number;
|
|
53
|
+
readonly b: number;
|
|
54
|
+
readonly a: number;
|
|
55
|
+
/**
|
|
56
|
+
* Return the r value as a percent
|
|
57
|
+
*/
|
|
58
|
+
get rPercent(): number;
|
|
59
|
+
/**
|
|
60
|
+
* Return the g value as a percent
|
|
61
|
+
*/
|
|
62
|
+
get gPercent(): number;
|
|
63
|
+
/**
|
|
64
|
+
* Return the b value as a percent
|
|
65
|
+
*/
|
|
66
|
+
get bPercent(): number;
|
|
67
|
+
/**
|
|
68
|
+
* Return the a value as a percent
|
|
69
|
+
*/
|
|
70
|
+
get aPercent(): number;
|
|
71
|
+
/**
|
|
72
|
+
* Returns the Color values as an array [r,g,b,a]
|
|
73
|
+
*/
|
|
74
|
+
get array(): [number, number, number, number];
|
|
75
|
+
/**
|
|
76
|
+
* Returns the Color values as a hex
|
|
77
|
+
*/
|
|
78
|
+
get hex(): string;
|
|
79
|
+
get dto(): ColorDTO;
|
|
80
|
+
private clampVal;
|
|
81
|
+
private constructor();
|
|
82
|
+
}
|
|
83
|
+
//# sourceMappingURL=Color.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Color.d.ts","sourceRoot":"","sources":["../../../src/ValueObjects/Color.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,GAAG,EAAE,CAAC;AAE5B,MAAM,WAAW,QAAQ;IACvB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX;AAED,qBAAa,KAAK;IAChB;;;;;;;OAOG;WACW,IAAI,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM;IAI7D;;;;;;OAMG;WACW,GAAG,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM;IAIjD;;;;OAIG;WACW,OAAO,CAAC,IAAI,EAAE,QAAQ;IAIpC;;;;OAIG;WACW,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,KAAK;IA0BrC;;;;OAIG;WACW,GAAG,CAAC,IAAI,EAAE,MAAM,GAAG,KAAK;IAYtC;;;;;OAKG;WACW,KAAK,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,KAAK,GAAG,OAAO;IAUhD,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,IAAI,QAAQ,IAAI,MAAM,CAErB;IAED;;OAEG;IACH,IAAI,QAAQ,IAAI,MAAM,CAErB;IAED;;OAEG;IACH,IAAI,QAAQ,IAAI,MAAM,CAErB;IAED;;OAEG;IACH,IAAI,QAAQ,IAAI,MAAM,CAErB;IAED;;OAEG;IACH,IAAI,KAAK,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAE5C;IAED;;OAEG;IACH,IAAI,GAAG,IAAI,MAAM,CAUhB;IAED,IAAI,GAAG,IAAI,QAAQ,CAOlB;IAED,OAAO,CAAC,QAAQ;IAMhB,OAAO;CAMR"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Color.test.d.ts","sourceRoot":"","sources":["../../../src/ValueObjects/Color.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Vector2 } from "./Vector2";
|
|
2
|
+
export declare class LineSegment2D {
|
|
3
|
+
static GetPositionAtPercent(line: LineSegment2D, percent: number): Vector2;
|
|
4
|
+
static Intersect(a: LineSegment2D, b: LineSegment2D, tolerance?: number): Vector2 | undefined;
|
|
5
|
+
static ClosestPointOnLine(line: LineSegment2D, point: Vector2): Vector2;
|
|
6
|
+
readonly start: Vector2;
|
|
7
|
+
readonly end: Vector2;
|
|
8
|
+
get length(): number;
|
|
9
|
+
get direction(): Vector2;
|
|
10
|
+
constructor(start: Vector2, end: Vector2);
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=LineSegment2D.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LineSegment2D.d.ts","sourceRoot":"","sources":["../../../src/ValueObjects/LineSegment2D.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,qBAAa,aAAa;WACV,oBAAoB,CAChC,IAAI,EAAE,aAAa,EACnB,OAAO,EAAE,MAAM,GACd,OAAO;WASI,SAAS,CACrB,CAAC,EAAE,aAAa,EAChB,CAAC,EAAE,aAAa,EAChB,SAAS,SAAI,GACZ,OAAO,GAAG,SAAS;WAoCR,kBAAkB,CAC9B,IAAI,EAAE,aAAa,EACnB,KAAK,EAAE,OAAO,GACb,OAAO;IAmBV,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC;IACxB,QAAQ,CAAC,GAAG,EAAE,OAAO,CAAC;IAEtB,IAAW,MAAM,IAAI,MAAM,CAE1B;IAED,IAAW,SAAS,IAAI,OAAO,CAE9B;gBAEW,KAAK,EAAE,OAAO,EAAE,GAAG,EAAE,OAAO;CAIzC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LineSegment2D.test.d.ts","sourceRoot":"","sources":["../../../src/ValueObjects/LineSegment2D.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { Angle } from "./Angle";
|
|
2
|
+
import { Quaternion } from "./Quaternion";
|
|
3
|
+
import { Vector3 } from "./Vector3";
|
|
4
|
+
export type MatrixArray = [
|
|
5
|
+
number,
|
|
6
|
+
number,
|
|
7
|
+
number,
|
|
8
|
+
number,
|
|
9
|
+
number,
|
|
10
|
+
number,
|
|
11
|
+
number,
|
|
12
|
+
number,
|
|
13
|
+
number,
|
|
14
|
+
number,
|
|
15
|
+
number,
|
|
16
|
+
number,
|
|
17
|
+
number,
|
|
18
|
+
number,
|
|
19
|
+
number,
|
|
20
|
+
number
|
|
21
|
+
];
|
|
22
|
+
export declare class Matrix {
|
|
23
|
+
/**
|
|
24
|
+
* Consructs an identity matrix
|
|
25
|
+
* @returns An identity matrix
|
|
26
|
+
*/
|
|
27
|
+
static Identity(): Matrix;
|
|
28
|
+
/**
|
|
29
|
+
* Constructs an matrix of zeros
|
|
30
|
+
* @returns A matrix of zeros
|
|
31
|
+
*/
|
|
32
|
+
static Zero(): Matrix;
|
|
33
|
+
/**
|
|
34
|
+
* Compares two matricies
|
|
35
|
+
* @param a Matrix A
|
|
36
|
+
* @param b Matrix B
|
|
37
|
+
* @returns True if all the elements in matrix A are equal to all the elements of matrix B
|
|
38
|
+
*/
|
|
39
|
+
static Equal(a: Matrix, b: Matrix): boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Checks to see if Matrix A is close to Matrix B by comparing elements
|
|
42
|
+
* @param a Matrix A
|
|
43
|
+
* @param b Matrix B
|
|
44
|
+
* @param threshold "Close" thershold. Defaults to 0.001
|
|
45
|
+
* @returns True if all the difference between the elements in each array is less than the threshold
|
|
46
|
+
*/
|
|
47
|
+
static Close(a: Matrix, b: Matrix, threshold?: number): boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Multiplies Matrix A and B (AxB)
|
|
50
|
+
* @param a Matrix A
|
|
51
|
+
* @param b Matrix B
|
|
52
|
+
* @returns The result of AxB
|
|
53
|
+
*/
|
|
54
|
+
static Multiply(a: Matrix, b: Matrix): Matrix;
|
|
55
|
+
/**
|
|
56
|
+
* Composes a matrix from a scale vector, rotation quaterion, and translation vector
|
|
57
|
+
* @param scale The scale of the transformation matrix
|
|
58
|
+
* @param rotation The rotation of the transformation matrix
|
|
59
|
+
* @param translation The translation of the transformation matrix
|
|
60
|
+
* @returns The composed matrix
|
|
61
|
+
*/
|
|
62
|
+
static Compose(scale: Vector3, rotation: Quaternion, translation: Vector3): Matrix;
|
|
63
|
+
/**
|
|
64
|
+
* Inverts a matrix into a new matrix.
|
|
65
|
+
* @param matrix The matrix to invert
|
|
66
|
+
* @returns The inverted matrix unless the matrix cannot be inverted, then the identity is returned
|
|
67
|
+
*/
|
|
68
|
+
static Invert(matrix: Matrix): Matrix;
|
|
69
|
+
/**
|
|
70
|
+
* Creates a rotation matrix for a given axes and angle
|
|
71
|
+
* @param axis The axes of rotation
|
|
72
|
+
* @param angle The angle of rotation
|
|
73
|
+
* @returns A new rotation matrix
|
|
74
|
+
*/
|
|
75
|
+
static FromRotationAxisAngle(axis: Vector3, angle: Angle): Matrix;
|
|
76
|
+
/**
|
|
77
|
+
* Make a new transformation matrix that has the same scale and rotation as the original but the translation is set
|
|
78
|
+
* @param original The original matrix
|
|
79
|
+
* @param translation The new translation value
|
|
80
|
+
* @returns A new matrix that is the same as the original but the translation has been changed
|
|
81
|
+
*/
|
|
82
|
+
static SetMatrixTranslation(original: Matrix, translation: Vector3): Matrix;
|
|
83
|
+
/**
|
|
84
|
+
* Make a new transformation matrix that has the same scale and translation as the original but the rotation is set
|
|
85
|
+
* @param original The original matrix
|
|
86
|
+
* @param rotation The new rotation value
|
|
87
|
+
* @returns A new matrix that is the same as the original but the rotation has been changed
|
|
88
|
+
*/
|
|
89
|
+
static SetMatrixRotation(original: Matrix, rotation: Quaternion): Matrix;
|
|
90
|
+
/**
|
|
91
|
+
* Make a new transformation matrix that has the same rotation and translation as the original but the scale is set
|
|
92
|
+
* @param original The original matrix
|
|
93
|
+
* @param scale The new scale value
|
|
94
|
+
* @returns A new matrix that is the same as the original but the scale has been changed
|
|
95
|
+
*/
|
|
96
|
+
static SetMatrixScale(original: Matrix, scale: Vector3): Matrix;
|
|
97
|
+
static FromFloat32Array(array: Float32Array): Matrix;
|
|
98
|
+
static FlipTransformMatrixHand(matrix: Matrix): Matrix;
|
|
99
|
+
static FlipProjectionMatrixHand(matrix: Matrix): Matrix;
|
|
100
|
+
/**
|
|
101
|
+
* Returns the determinate of the matrix
|
|
102
|
+
*/
|
|
103
|
+
get determinate(): number;
|
|
104
|
+
/**
|
|
105
|
+
* Returns the translation component of the transformation matrix as a Vector
|
|
106
|
+
*/
|
|
107
|
+
get translation(): Vector3;
|
|
108
|
+
/**
|
|
109
|
+
* Returns the scale of the transformation matrix as a vector
|
|
110
|
+
*/
|
|
111
|
+
get scale(): Vector3;
|
|
112
|
+
/**
|
|
113
|
+
* Returns the rotation components of the transformation matrix as a Quaternion
|
|
114
|
+
*/
|
|
115
|
+
get rotation(): Quaternion;
|
|
116
|
+
/**
|
|
117
|
+
* Returns just the rotation matrix of the transformation matrix
|
|
118
|
+
*/
|
|
119
|
+
get rotationMatrix(): Matrix;
|
|
120
|
+
private readonly _m;
|
|
121
|
+
get m(): MatrixArray;
|
|
122
|
+
constructor(m: MatrixArray);
|
|
123
|
+
}
|
|
124
|
+
//# sourceMappingURL=Matrix.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Matrix.d.ts","sourceRoot":"","sources":["../../../src/ValueObjects/Matrix.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,MAAM,MAAM,WAAW,GAAG;IACxB,MAAM;IACN,MAAM;IACN,MAAM;IACN,MAAM;IACN,MAAM;IACN,MAAM;IACN,MAAM;IACN,MAAM;IACN,MAAM;IACN,MAAM;IACN,MAAM;IACN,MAAM;IACN,MAAM;IACN,MAAM;IACN,MAAM;IACN,MAAM;CACP,CAAC;AAEF,qBAAa,MAAM;IACjB;;;OAGG;WACW,QAAQ,IAAI,MAAM;IAIhC;;;OAGG;WACW,IAAI,IAAI,MAAM;IAI5B;;;;;OAKG;WACW,KAAK,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,OAAO;IAWlD;;;;;;OAMG;WACW,KAAK,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,SAAS,SAAQ,GAAG,OAAO;IAerE;;;;;OAKG;WACW,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM;IA+EpD;;;;;;OAMG;WACW,OAAO,CACnB,KAAK,EAAE,OAAO,EACd,QAAQ,EAAE,UAAU,EACpB,WAAW,EAAE,OAAO,GACnB,MAAM;IAgDT;;;;OAIG;WACW,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM;IAqF5C;;;;;OAKG;WACW,qBAAqB,CAAC,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,GAAG,MAAM;IA8BxE;;;;;OAKG;WACW,oBAAoB,CAChC,QAAQ,EAAE,MAAM,EAChB,WAAW,EAAE,OAAO,GACnB,MAAM;IAST;;;;;OAKG;WACW,iBAAiB,CAC7B,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,UAAU,GACnB,MAAM;IAOT;;;;;OAKG;WACW,cAAc,CAC1B,QAAQ,EAAE,MAAM,EAChB,KAAK,EAAE,OAAO,GACb,MAAM;WAOK,gBAAgB,CAAC,KAAK,EAAE,YAAY,GAAG,MAAM;WA4B7C,uBAAuB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM;WAW/C,wBAAwB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM;IAU9D;;OAEG;IACH,IAAW,WAAW,IAAI,MAAM,CAgC/B;IAED;;OAEG;IACH,IAAI,WAAW,IAAI,OAAO,CAEzB;IAED;;OAEG;IACH,IAAI,KAAK,IAAI,OAAO,CAsBnB;IAED;;OAEG;IACH,IAAI,QAAQ,IAAI,UAAU,CAEzB;IAED;;OAEG;IACH,IAAI,cAAc,IAAI,MAAM,CA0B3B;IAGD,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAc;IACjC,IAAI,CAAC,IAAI,WAAW,CAEnB;gBAEW,CAAC,EAAE,WAAW;CAG3B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Matrix.test.d.ts","sourceRoot":"","sources":["../../../src/ValueObjects/Matrix.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Vector3 } from "../ValueObjects/Vector3";
|
|
2
|
+
export interface LineParameters {
|
|
3
|
+
x0: number;
|
|
4
|
+
y0: number;
|
|
5
|
+
z0: number;
|
|
6
|
+
a: number;
|
|
7
|
+
b: number;
|
|
8
|
+
c: number;
|
|
9
|
+
}
|
|
10
|
+
export declare class ParametricLine {
|
|
11
|
+
static FromTwoPoint(p1: Vector3, p2: Vector3): ParametricLine;
|
|
12
|
+
static FromPointDirection(point: Vector3, direction: Vector3): ParametricLine;
|
|
13
|
+
static Forward(): ParametricLine;
|
|
14
|
+
static Backward(): ParametricLine;
|
|
15
|
+
static Up(): ParametricLine;
|
|
16
|
+
static Down(): ParametricLine;
|
|
17
|
+
static Left(): ParametricLine;
|
|
18
|
+
static Right(): ParametricLine;
|
|
19
|
+
static GetPointAtDistance(line: ParametricLine, distance: number): Vector3;
|
|
20
|
+
static GetDistanceToPoint(line: ParametricLine, point: Vector3): number;
|
|
21
|
+
readonly x0: number;
|
|
22
|
+
readonly y0: number;
|
|
23
|
+
readonly z0: number;
|
|
24
|
+
readonly a: number;
|
|
25
|
+
readonly b: number;
|
|
26
|
+
readonly c: number;
|
|
27
|
+
get origin(): Vector3;
|
|
28
|
+
get direction(): Vector3;
|
|
29
|
+
constructor(parameters: LineParameters);
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=ParametricLine.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ParametricLine.d.ts","sourceRoot":"","sources":["../../../src/ValueObjects/ParametricLine.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAElD,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX;AAED,qBAAa,cAAc;WAGX,YAAY,CAAC,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,OAAO,GAAG,cAAc;WAKtD,kBAAkB,CAC9B,KAAK,EAAE,OAAO,EACd,SAAS,EAAE,OAAO,GACjB,cAAc;WAWH,OAAO,IAAI,cAAc;WAMzB,QAAQ,IAAI,cAAc;WAM1B,EAAE,IAAI,cAAc;WAMpB,IAAI,IAAI,cAAc;WAMtB,IAAI,IAAI,cAAc;WAMtB,KAAK,IAAI,cAAc;WAMvB,kBAAkB,CAC9B,IAAI,EAAE,cAAc,EACpB,QAAQ,EAAE,MAAM,GACf,OAAO;WAQI,kBAAkB,CAC9B,IAAI,EAAE,cAAc,EACpB,KAAK,EAAE,OAAO,GACb,MAAM;IAIT,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAC;IAEnB,IAAI,MAAM,IAAI,OAAO,CAEpB;IAED,IAAI,SAAS,IAAI,OAAO,CAEvB;gBAEW,UAAU,EAAE,cAAc;CAWvC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ParametricLine.test.d.ts","sourceRoot":"","sources":["../../../src/ValueObjects/ParametricLine.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ParametricLine } from "./ParametricLine";
|
|
2
|
+
import { Vector3 } from "../ValueObjects/Vector3";
|
|
3
|
+
export interface PlaneParameters {
|
|
4
|
+
a: number;
|
|
5
|
+
b: number;
|
|
6
|
+
c: number;
|
|
7
|
+
d: number;
|
|
8
|
+
}
|
|
9
|
+
export declare class ParametricPlane {
|
|
10
|
+
private point;
|
|
11
|
+
private normal;
|
|
12
|
+
static FromPointNormal(point: Vector3, normal: Vector3): ParametricPlane;
|
|
13
|
+
static FromThreePoints(A: Vector3, B: Vector3, C: Vector3): ParametricPlane;
|
|
14
|
+
static XY(): ParametricPlane;
|
|
15
|
+
static ZX(): ParametricPlane;
|
|
16
|
+
static YZ(): ParametricPlane;
|
|
17
|
+
GetParameters(): PlaneParameters;
|
|
18
|
+
intersectLine(line: ParametricLine): Vector3 | undefined;
|
|
19
|
+
constructor(point: Vector3, normal: Vector3);
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=ParametricPlane.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ParametricPlane.d.ts","sourceRoot":"","sources":["../../../src/ValueObjects/ParametricPlane.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAIlD,MAAM,WAAW,eAAe;IAC9B,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX;AAED,qBAAa,eAAe;IAoEd,OAAO,CAAC,KAAK;IAAW,OAAO,CAAC,MAAM;IAnElD,MAAM,CAAC,eAAe,CAAC,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,GAAG,eAAe;IAIxE,MAAM,CAAC,eAAe,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,GAAG,eAAe;IAS3E,MAAM,CAAC,EAAE,IAAI,eAAe;IAM5B,MAAM,CAAC,EAAE,IAAI,eAAe;IAM5B,MAAM,CAAC,EAAE,IAAI,eAAe;IAM5B,aAAa,IAAI,eAAe;IAkBzB,aAAa,CAAC,IAAI,EAAE,cAAc,GAAG,OAAO,GAAG,SAAS;gBAkB3C,KAAK,EAAE,OAAO,EAAU,MAAM,EAAE,OAAO;CAC5D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ParametricPlane.test.d.ts","sourceRoot":"","sources":["../../../src/ValueObjects/ParametricPlane.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { Angle } from "./Angle";
|
|
2
|
+
import { Matrix } from "./Matrix";
|
|
3
|
+
import { Vector3 } from "./Vector3";
|
|
4
|
+
export interface QuaternionDTO {
|
|
5
|
+
x: number;
|
|
6
|
+
y: number;
|
|
7
|
+
z: number;
|
|
8
|
+
w: number;
|
|
9
|
+
}
|
|
10
|
+
export declare class Quaternion {
|
|
11
|
+
/**
|
|
12
|
+
* Checks to see if two Quaternions are equal
|
|
13
|
+
* @param a Quaternion A
|
|
14
|
+
* @param b Quaternion B
|
|
15
|
+
* @returns True if they are equal, otherwise false
|
|
16
|
+
*/
|
|
17
|
+
static Equal(a: Quaternion, b: Quaternion): boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Checks two quaternions to see if they are close
|
|
20
|
+
* @param a Quaterion A
|
|
21
|
+
* @param b Quaterion B
|
|
22
|
+
* @param threshold "Close" threshold. Defaults to 0.001
|
|
23
|
+
* @returns True if each of Quaterion's components are within the threshold of each other
|
|
24
|
+
*/
|
|
25
|
+
static Close(a: Quaternion, b: Quaternion, threshold?: number): boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Multiplies A*B
|
|
28
|
+
* @param a Quaterion A
|
|
29
|
+
* @param b Quaternion B
|
|
30
|
+
* @returns The result of A*B
|
|
31
|
+
*/
|
|
32
|
+
static Multiply(a: Quaternion, b: Quaternion): Quaternion;
|
|
33
|
+
/**
|
|
34
|
+
* Creates a new Quaterion from an array of values
|
|
35
|
+
* @param values The four values of the Quaterion: [x,y,z,w]
|
|
36
|
+
* @returns A Quaterion
|
|
37
|
+
*/
|
|
38
|
+
static FromArray(values: [number, number, number, number]): Quaternion;
|
|
39
|
+
/**
|
|
40
|
+
* Creates a Quaterion from a Data Transfer Object
|
|
41
|
+
* @param dto The Data Transfer Object
|
|
42
|
+
* @returns The Quaternion
|
|
43
|
+
*/
|
|
44
|
+
static FromDTO(dto: QuaternionDTO): Quaternion;
|
|
45
|
+
/**
|
|
46
|
+
* Creates an Identity Quaternion
|
|
47
|
+
* @returns An Identity Quaternion
|
|
48
|
+
*/
|
|
49
|
+
static Identity(): Quaternion;
|
|
50
|
+
/**
|
|
51
|
+
* Creates an quaterion about an axis for a given angle
|
|
52
|
+
* @param axis The rotation axis
|
|
53
|
+
* @param angle The rotation angle
|
|
54
|
+
* @returns The resulting Quaterion
|
|
55
|
+
*/
|
|
56
|
+
static FromAngleAxis(axis: Vector3, angle: Angle): Quaternion;
|
|
57
|
+
static FromDirectionVector(direction: Vector3): Quaternion;
|
|
58
|
+
/**
|
|
59
|
+
* Froms up a Quaternion from the Yaw-Pitch-Roll (Tait-Bryan) convetion
|
|
60
|
+
* @param yaw defines the rotation around the y axis
|
|
61
|
+
* @param pitch defines the rotation around the x axis
|
|
62
|
+
* @param roll defines the rotation around the z axis
|
|
63
|
+
* @returns the resulting quaterion
|
|
64
|
+
*/
|
|
65
|
+
static FromYawPitchRoll(yaw: Angle, pitch: Angle, roll: Angle): Quaternion;
|
|
66
|
+
/**
|
|
67
|
+
* Creates a Quaternion from three euler angles.
|
|
68
|
+
* @param x Rotation about the x axis
|
|
69
|
+
* @param y Rotation about the y axis
|
|
70
|
+
* @param z Rotation about the z axis
|
|
71
|
+
* @returns The Quaterion
|
|
72
|
+
*/
|
|
73
|
+
static FromEuler(x: Angle, y: Angle, z: Angle): Quaternion;
|
|
74
|
+
/**
|
|
75
|
+
* Returns a new Quaternion that is an invert of A
|
|
76
|
+
* @param a The quaternion to invert
|
|
77
|
+
* @returns The inverted Quaternion
|
|
78
|
+
*/
|
|
79
|
+
static Inverse(a: Quaternion): Quaternion;
|
|
80
|
+
static AngleBetween(a: Quaternion, b: Quaternion): Angle;
|
|
81
|
+
/**
|
|
82
|
+
* Spherically interpolates between two quaternions
|
|
83
|
+
* @param initial The initial quaternion
|
|
84
|
+
* @param final The final quaterion
|
|
85
|
+
* @param percent The percent along the slerp. 0 will return the initial quaterion and 1 will return the final quaterion
|
|
86
|
+
* @returns The interpolated quaterion
|
|
87
|
+
*/
|
|
88
|
+
static Slerp(initial: Quaternion, final: Quaternion, percent: number): Quaternion;
|
|
89
|
+
/**
|
|
90
|
+
* Calculates a Quaternion from a rotation matrix
|
|
91
|
+
* @param rotationMatrix A normalized, non-scaled rotation matrix
|
|
92
|
+
* @returns The Quaterion
|
|
93
|
+
*/
|
|
94
|
+
static FromRotationMatrix(rotationMatrix: Matrix): Quaternion;
|
|
95
|
+
static ToRotationMatrix(quat: Quaternion): Matrix;
|
|
96
|
+
/**
|
|
97
|
+
* Copy the quaternion to an array
|
|
98
|
+
* @returns an array populated with 4 elements from the quaternion coordinates
|
|
99
|
+
*/
|
|
100
|
+
toArray(): [number, number, number, number];
|
|
101
|
+
get angle(): Angle;
|
|
102
|
+
get axis(): Vector3;
|
|
103
|
+
/**
|
|
104
|
+
* Get the quaternion as a Data Transfer Object
|
|
105
|
+
*/
|
|
106
|
+
get dto(): QuaternionDTO;
|
|
107
|
+
readonly x: number;
|
|
108
|
+
readonly y: number;
|
|
109
|
+
readonly z: number;
|
|
110
|
+
readonly w: number;
|
|
111
|
+
constructor(x: number, y: number, z: number, w: number);
|
|
112
|
+
}
|
|
113
|
+
//# sourceMappingURL=Quaternion.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Quaternion.d.ts","sourceRoot":"","sources":["../../../src/ValueObjects/Quaternion.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,MAAM,WAAW,aAAa;IAC5B,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX;AAED,qBAAa,UAAU;IACrB;;;;;OAKG;WACW,KAAK,CAAC,CAAC,EAAE,UAAU,EAAE,CAAC,EAAE,UAAU,GAAG,OAAO;IAQ1D;;;;;;OAMG;WACW,KAAK,CACjB,CAAC,EAAE,UAAU,EACb,CAAC,EAAE,UAAU,EACb,SAAS,SAAQ,GAChB,OAAO;IAkBV;;;;;OAKG;WACW,QAAQ,CAAC,CAAC,EAAE,UAAU,EAAE,CAAC,EAAE,UAAU,GAAG,UAAU;IAQhE;;;;OAIG;WACW,SAAS,CACrB,MAAM,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,GACvC,UAAU;IAIb;;;;OAIG;WACW,OAAO,CAAC,GAAG,EAAE,aAAa,GAAG,UAAU;IAIrD;;;OAGG;WACW,QAAQ,IAAI,UAAU;IAIpC;;;;;OAKG;WACW,aAAa,CAAC,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,GAAG,UAAU;WAUtD,mBAAmB,CAAC,SAAS,EAAE,OAAO,GAAG,UAAU;IAkCjE;;;;;;OAMG;WACW,gBAAgB,CAC5B,GAAG,EAAE,KAAK,EACV,KAAK,EAAE,KAAK,EACZ,IAAI,EAAE,KAAK,GACV,UAAU;IAoBb;;;;;;OAMG;WACW,SAAS,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,KAAK;IAIpD;;;;OAIG;WACW,OAAO,CAAC,CAAC,EAAE,UAAU,GAAG,UAAU;WAIlC,YAAY,CAAC,CAAC,EAAE,UAAU,EAAE,CAAC,EAAE,UAAU,GAAG,KAAK;IAY/D;;;;;;OAMG;WACW,KAAK,CACjB,OAAO,EAAE,UAAU,EACnB,KAAK,EAAE,UAAU,EACjB,OAAO,EAAE,MAAM,GACd,UAAU;IAiCb;;;;OAIG;WACW,kBAAkB,CAAC,cAAc,EAAE,MAAM,GAAG,UAAU;WAmDtD,gBAAgB,CAAC,IAAI,EAAE,UAAU,GAAG,MAAM;IAIxD;;;OAGG;IACH,OAAO,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC;IAI3C,IAAI,KAAK,IAAI,KAAK,CAGjB;IAED,IAAI,IAAI,IAAI,OAAO,CAKlB;IAED;;OAEG;IACH,IAAI,GAAG,IAAI,aAAa,CAEvB;IAED,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAC;gBAEP,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM;CAMvD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Quaternion.test.d.ts","sourceRoot":"","sources":["../../../src/ValueObjects/Quaternion.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface RectangleDTO {
|
|
2
|
+
top: number;
|
|
3
|
+
left: number;
|
|
4
|
+
right: number;
|
|
5
|
+
bottom: number;
|
|
6
|
+
}
|
|
7
|
+
export declare class Rectangle {
|
|
8
|
+
static FromDTO(dto: RectangleDTO): Rectangle;
|
|
9
|
+
readonly top: number;
|
|
10
|
+
readonly left: number;
|
|
11
|
+
readonly bottom: number;
|
|
12
|
+
readonly right: number;
|
|
13
|
+
get dto(): RectangleDTO;
|
|
14
|
+
constructor(top: number, right: number, bottom: number, left: number);
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=Rectangle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Rectangle.d.ts","sourceRoot":"","sources":["../../../src/ValueObjects/Rectangle.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IAC3B,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,qBAAa,SAAS;WACN,OAAO,CAAC,GAAG,EAAE,YAAY,GAAE,SAAS;IAIlD,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IAEvB,IAAI,GAAG,IAAI,YAAY,CAOtB;gBAEW,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM;CAMrE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Rectangle.test.d.ts","sourceRoot":"","sources":["../../../src/ValueObjects/Rectangle.test.ts"],"names":[],"mappings":""}
|