@glowjs/core 2023.9.23 → 2023.10.26

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.
Files changed (205) hide show
  1. package/dist/glow.core.js +1 -1
  2. package/dist/typings/base/Base.d.ts +24 -24
  3. package/dist/typings/base/IDisposable.d.ts +9 -9
  4. package/dist/typings/camera/AutoRotate.d.ts +36 -36
  5. package/dist/typings/camera/CameraCacheData.d.ts +21 -21
  6. package/dist/typings/camera/CameraMgr.d.ts +339 -339
  7. package/dist/typings/camera/CameraMode.d.ts +13 -13
  8. package/dist/typings/camera/CameraPerson.d.ts +13 -13
  9. package/dist/typings/camera/CustomArcRotateCameraKeyboardMoveInput.d.ts +28 -28
  10. package/dist/typings/camera/CustomArcRotateCameraMouseWheelInput.d.ts +17 -17
  11. package/dist/typings/camera/FlyData.d.ts +29 -29
  12. package/dist/typings/camera/OrthographicView.d.ts +21 -21
  13. package/dist/typings/core/App.d.ts +149 -149
  14. package/dist/typings/core/AppOptions.d.ts +35 -35
  15. package/dist/typings/core/Size.d.ts +13 -13
  16. package/dist/typings/core/create.d.ts +9 -9
  17. package/dist/typings/core/version.d.ts +1 -1
  18. package/dist/typings/effect/ColorCorrection.d.ts +129 -129
  19. package/dist/typings/effect/EffectMgr.d.ts +71 -71
  20. package/dist/typings/effect/EnvironmentTexture.d.ts +36 -36
  21. package/dist/typings/effect/EnvironmentTextureSource.d.ts +25 -25
  22. package/dist/typings/effect/Fog.d.ts +43 -43
  23. package/dist/typings/effect/FogMode.d.ts +21 -21
  24. package/dist/typings/effect/Glow.d.ts +43 -43
  25. package/dist/typings/effect/HighLight.d.ts +49 -49
  26. package/dist/typings/effect/ImageProcessing.d.ts +43 -43
  27. package/dist/typings/effect/Light.d.ts +20 -20
  28. package/dist/typings/effect/SkyBox.d.ts +73 -73
  29. package/dist/typings/effect/SkyBoxSource.d.ts +41 -41
  30. package/dist/typings/effect/ToneMappingType.d.ts +13 -13
  31. package/dist/typings/entity/Building.d.ts +129 -103
  32. package/dist/typings/entity/Campus.d.ts +35 -35
  33. package/dist/typings/entity/Corner.d.ts +43 -43
  34. package/dist/typings/entity/DecorateGrid.d.ts +35 -35
  35. package/dist/typings/entity/DoorWindow.d.ts +77 -77
  36. package/dist/typings/entity/DoorWindowDirection.d.ts +21 -21
  37. package/dist/typings/entity/Entity.d.ts +359 -359
  38. package/dist/typings/entity/EntityType.d.ts +65 -65
  39. package/dist/typings/entity/Floor.d.ts +109 -109
  40. package/dist/typings/entity/Group.d.ts +34 -34
  41. package/dist/typings/entity/LeakLine.d.ts +44 -44
  42. package/dist/typings/entity/LevelMgr.d.ts +84 -84
  43. package/dist/typings/entity/ManualWall.d.ts +85 -85
  44. package/dist/typings/entity/ManualWallBuilder.d.ts +157 -157
  45. package/dist/typings/entity/MeshFaceData.d.ts +25 -25
  46. package/dist/typings/entity/OtherEntity.d.ts +20 -20
  47. package/dist/typings/entity/Path.d.ts +1 -1
  48. package/dist/typings/entity/PrefabWall.d.ts +57 -57
  49. package/dist/typings/entity/Room.d.ts +167 -167
  50. package/dist/typings/entity/Text3D.d.ts +62 -62
  51. package/dist/typings/entity/Thing.d.ts +121 -121
  52. package/dist/typings/entity/Tracker.d.ts +34 -34
  53. package/dist/typings/entity/ViewInfo.d.ts +14 -14
  54. package/dist/typings/entity/Wall.d.ts +95 -95
  55. package/dist/typings/entity/building/initPoolingLoop.d.ts +6 -0
  56. package/dist/typings/entity/building/initPoolingMouse.d.ts +6 -0
  57. package/dist/typings/entity/component/Animator.d.ts +45 -45
  58. package/dist/typings/entity/component/AutoOpenDoor.d.ts +24 -24
  59. package/dist/typings/entity/component/Component.d.ts +17 -17
  60. package/dist/typings/entity/component/PathAnimation.d.ts +51 -51
  61. package/dist/typings/entity/component/Style.d.ts +47 -47
  62. package/dist/typings/entity/component/archive/ArchiveBox.d.ts +97 -97
  63. package/dist/typings/entity/component/archive/ArchiveCabinet.d.ts +98 -98
  64. package/dist/typings/entity/component/archive/ArchiveCabinetGroup.d.ts +154 -154
  65. package/dist/typings/entity/component/archive/ArchiveCabinetGroupCount.d.ts +16 -16
  66. package/dist/typings/entity/component/archive/ArchiveCabinetGroupState.d.ts +21 -21
  67. package/dist/typings/entity/component/archive/ArchiveDoor.d.ts +28 -28
  68. package/dist/typings/entity/component/archive/ArchiveGrid.d.ts +43 -43
  69. package/dist/typings/entity/component/archive/ArchiveMgr.d.ts +36 -36
  70. package/dist/typings/entity/component/archive/createArchiveGrid.d.ts +6 -6
  71. package/dist/typings/entity/component/archive/createColumnTag.d.ts +6 -6
  72. package/dist/typings/entity/component/archive/events/onAppMove.d.ts +6 -6
  73. package/dist/typings/entity/component/archive/events/onAppRightDoubleClick.d.ts +6 -6
  74. package/dist/typings/entity/component/archive/events/onGroupLeftDoubleClick.d.ts +8 -8
  75. package/dist/typings/entity/component/archive/events/onGroupPointerLeave.d.ts +6 -6
  76. package/dist/typings/entity/component/archive/events/onGroupRightClick.d.ts +8 -8
  77. package/dist/typings/entity/component/archive/events/onLevelChanged.d.ts +8 -8
  78. package/dist/typings/entity/component/archive/getCapacityOriginBox.d.ts +6 -6
  79. package/dist/typings/entity/component/cabinet/BoardCard.d.ts +63 -63
  80. package/dist/typings/entity/component/cabinet/Cabinet.d.ts +123 -123
  81. package/dist/typings/entity/component/cabinet/CabinetCapacityData.d.ts +17 -17
  82. package/dist/typings/entity/component/cabinet/CabinetMgr.d.ts +47 -47
  83. package/dist/typings/entity/component/cabinet/NetworkPort.d.ts +46 -46
  84. package/dist/typings/entity/component/cabinet/RackMounted.d.ts +106 -106
  85. package/dist/typings/entity/component/cabinet/ResImageSource.d.ts +13 -13
  86. package/dist/typings/entity/component/cabinet/events/onAppMove.d.ts +6 -6
  87. package/dist/typings/entity/component/cabinet/events/onAppRightDoubleClick.d.ts +6 -6
  88. package/dist/typings/entity/component/cabinet/events/onCabinetLeftDoubleClick.d.ts +7 -7
  89. package/dist/typings/entity/component/cabinet/events/onCabinetPointerLeave.d.ts +2 -2
  90. package/dist/typings/entity/component/cabinet/events/onCabinetRightClick.d.ts +3 -3
  91. package/dist/typings/entity/component/cabinet/events/onLevelChanged.d.ts +8 -8
  92. package/dist/typings/entity/component/heatmap/Heatmap.d.ts +56 -56
  93. package/dist/typings/entity/component/heatmap/HeatmapType.d.ts +17 -17
  94. package/dist/typings/entity/component/heatmap/buildHorizontal.d.ts +6 -6
  95. package/dist/typings/entity/component/heatmap/buildVertical.d.ts +6 -6
  96. package/dist/typings/entity/component/roaming/Roaming.d.ts +93 -93
  97. package/dist/typings/entity/component/roaming/pencil.d.ts +1 -1
  98. package/dist/typings/entity/path/Path.d.ts +48 -48
  99. package/dist/typings/entity/path/attachDrag.d.ts +2 -2
  100. package/dist/typings/entity/path/createLineMeshData.d.ts +3 -3
  101. package/dist/typings/entity/path/createPointInstance.d.ts +5 -5
  102. package/dist/typings/entity/path/detachDrag.d.ts +2 -2
  103. package/dist/typings/entity/path/dragData.d.ts +9 -9
  104. package/dist/typings/entity/path/getLineMaterial.d.ts +2 -2
  105. package/dist/typings/entity/placement.d.ts +20 -20
  106. package/dist/typings/entity/util/box.d.ts +9 -9
  107. package/dist/typings/entity/util/createManualWallEdgeMaterial.d.ts +8 -8
  108. package/dist/typings/entity/util/createManualWallFaceMaterial.d.ts +8 -8
  109. package/dist/typings/entity/util/createManualWallMesh.d.ts +12 -12
  110. package/dist/typings/entity/util/createMergedMesh.d.ts +13 -13
  111. package/dist/typings/entity/util/createPathArrowIcon.d.ts +4 -4
  112. package/dist/typings/entity/util/createPathCircleIcon.d.ts +4 -4
  113. package/dist/typings/entity/util/createRoomMaterial.d.ts +3 -3
  114. package/dist/typings/entity/util/createRoomMesh.d.ts +14 -14
  115. package/dist/typings/entity/util/getPathIconMesh.d.ts +7 -7
  116. package/dist/typings/entity/util/getPathLineMesh.d.ts +2 -2
  117. package/dist/typings/entity/util/getPerWeight.d.ts +6 -6
  118. package/dist/typings/entity/util/hideAllBoundingBox.d.ts +6 -6
  119. package/dist/typings/entity/util/setRes.d.ts +5 -5
  120. package/dist/typings/entity/util/smoothTube.d.ts +7 -7
  121. package/dist/typings/entity/util/technologyBuildingMaterial.d.ts +67 -67
  122. package/dist/typings/event/EventArg.d.ts +14 -14
  123. package/dist/typings/event/EventDispatcher.d.ts +67 -67
  124. package/dist/typings/event/EventMgr.d.ts +102 -102
  125. package/dist/typings/event/EventObject.d.ts +26 -26
  126. package/dist/typings/event/EventType.d.ts +161 -161
  127. package/dist/typings/event/KeyCode.d.ts +55 -55
  128. package/dist/typings/event/PropertyChangedData.d.ts +21 -21
  129. package/dist/typings/gui/Billboard.d.ts +104 -102
  130. package/dist/typings/gui/BillboardOptions.d.ts +62 -62
  131. package/dist/typings/gui/FPSBar.d.ts +25 -25
  132. package/dist/typings/gui/GUIMgr.d.ts +41 -41
  133. package/dist/typings/gui/GradientRectangle.d.ts +57 -57
  134. package/dist/typings/gui/LinkTip.d.ts +30 -30
  135. package/dist/typings/gui/PerformancePanel.d.ts +41 -41
  136. package/dist/typings/gui/RectangleProgress.d.ts +20 -20
  137. package/dist/typings/gui/ToolTip.d.ts +24 -24
  138. package/dist/typings/gui/getTextWidth.d.ts +6 -6
  139. package/dist/typings/index.d.ts +80 -80
  140. package/dist/typings/material/MaterialMgr.d.ts +18 -18
  141. package/dist/typings/misc/Point2D.d.ts +4 -4
  142. package/dist/typings/misc/Point3D.d.ts +4 -4
  143. package/dist/typings/misc/Point4D.d.ts +4 -4
  144. package/dist/typings/misc/SystemResId.d.ts +85 -85
  145. package/dist/typings/misc/blobToDataURL.d.ts +5 -5
  146. package/dist/typings/misc/cookie.d.ts +17 -17
  147. package/dist/typings/misc/dataURLtoBlob.d.ts +5 -5
  148. package/dist/typings/misc/getQueryString.d.ts +5 -5
  149. package/dist/typings/misc/guid.d.ts +21 -21
  150. package/dist/typings/misc/http.d.ts +46 -46
  151. package/dist/typings/misc/index.d.ts +15 -15
  152. package/dist/typings/misc/isHexColor.d.ts +5 -5
  153. package/dist/typings/misc/isLAN.d.ts +4 -4
  154. package/dist/typings/misc/math/Line.d.ts +5 -5
  155. package/dist/typings/misc/math/Point.d.ts +7 -7
  156. package/dist/typings/misc/math/compare/EPSILON.d.ts +4 -4
  157. package/dist/typings/misc/math/compare/greateThanOrEqual.d.ts +8 -8
  158. package/dist/typings/misc/math/compare/greaterThan.d.ts +7 -7
  159. package/dist/typings/misc/math/compare/lessThan.d.ts +7 -7
  160. package/dist/typings/misc/math/compare/lessThanOrEqual.d.ts +7 -7
  161. package/dist/typings/misc/math/compare/withinEpsilon.d.ts +9 -9
  162. package/dist/typings/misc/math/index.d.ts +34 -34
  163. package/dist/typings/misc/math/line/distanceToParallelLine.d.ts +7 -7
  164. package/dist/typings/misc/math/line/distanceToProjection.d.ts +8 -8
  165. package/dist/typings/misc/math/line/getLineIntersection.d.ts +9 -9
  166. package/dist/typings/misc/math/line/isLineParallel.d.ts +7 -7
  167. package/dist/typings/misc/math/line/project.d.ts +8 -8
  168. package/dist/typings/misc/math/line/relateToPoint.d.ts +8 -8
  169. package/dist/typings/misc/math/round.d.ts +6 -6
  170. package/dist/typings/misc/math/segment/getSegmentIntersection.d.ts +8 -8
  171. package/dist/typings/misc/math/segment/getSegmentPartIncludePoint.d.ts +8 -8
  172. package/dist/typings/misc/math/segment/onSegment.d.ts +8 -8
  173. package/dist/typings/misc/math/segment/segmentFullInclude.d.ts +8 -8
  174. package/dist/typings/misc/math/vec/addTo.d.ts +7 -7
  175. package/dist/typings/misc/math/vec/angleTo.d.ts +7 -7
  176. package/dist/typings/misc/math/vec/centerTo.d.ts +7 -7
  177. package/dist/typings/misc/math/vec/cross.d.ts +7 -7
  178. package/dist/typings/misc/math/vec/distanceTo.d.ts +7 -7
  179. package/dist/typings/misc/math/vec/dot.d.ts +7 -7
  180. package/dist/typings/misc/math/vec/ignoreYAxis.d.ts +7 -7
  181. package/dist/typings/misc/math/vec/isClockwise.d.ts +6 -6
  182. package/dist/typings/misc/math/vec/lengthTo.d.ts +6 -6
  183. package/dist/typings/misc/math/vec/multiplyTo.d.ts +7 -7
  184. package/dist/typings/misc/math/vec/normalizeTo.d.ts +6 -6
  185. package/dist/typings/misc/math/vec/scaleTo.d.ts +7 -7
  186. package/dist/typings/misc/math/vec/subtractTo.d.ts +7 -7
  187. package/dist/typings/misc/math/vec/toPoint.d.ts +8 -8
  188. package/dist/typings/misc/math/vec/toVector3.d.ts +7 -7
  189. package/dist/typings/misc/math/vec/verticalVector.d.ts +7 -7
  190. package/dist/typings/misc/object.d.ts +16 -16
  191. package/dist/typings/misc/randomColor.d.ts +4 -4
  192. package/dist/typings/misc/to.d.ts +5 -5
  193. package/dist/typings/res/ResCacheData.d.ts +14 -14
  194. package/dist/typings/res/ResOptions.d.ts +75 -75
  195. package/dist/typings/res/ResPool.d.ts +57 -57
  196. package/dist/typings/res/registerBuffer.d.ts +6 -6
  197. package/dist/typings/res/replaceInstancedMesh.d.ts +6 -6
  198. package/dist/typings/runtime/RunTime.d.ts +184 -173
  199. package/dist/typings/runtime/babylonjs/babylonjs-core.d.ts +73 -73
  200. package/dist/typings/runtime/babylonjs/babylonjs-gui.d.ts +12 -12
  201. package/dist/typings/runtime/babylonjs/babylonjs-loaders.d.ts +1 -1
  202. package/dist/typings/runtime/babylonjs/babylonjs-materials.d.ts +1 -1
  203. package/dist/typings/runtime/index.d.ts +8 -8
  204. package/dist/typings/runtime/tweenjs/index.d.ts +1 -1
  205. package/package.json +16 -16
@@ -1,5 +1,5 @@
1
- /**
2
- * 判断是否是有效的十六进制颜色
3
- * @param value
4
- */
5
- export declare function isHexColor(value: string): boolean;
1
+ /**
2
+ * 判断是否是有效的十六进制颜色
3
+ * @param value
4
+ */
5
+ export declare function isHexColor(value: string): boolean;
@@ -1,4 +1,4 @@
1
- /**
2
- * 是否是局域网
3
- */
4
- export declare function isLAN(): boolean;
1
+ /**
2
+ * 是否是局域网
3
+ */
4
+ export declare function isLAN(): boolean;
@@ -1,5 +1,5 @@
1
- import { Point } from './Point';
2
- /**
3
- * 直线或线段
4
- */
5
- export declare type Line = [Point, Point];
1
+ import { Point } from './Point';
2
+ /**
3
+ * 直线或线段
4
+ */
5
+ export type Line = [Point, Point];
@@ -1,7 +1,7 @@
1
- import { Vector2, Vector3 } from '../../runtime';
2
- import { Point2D } from '../Point2D';
3
- import { Point3D } from '../Point3D';
4
- /**
5
- * 点
6
- */
7
- export declare type Point = Point2D | Point3D | Vector2 | Vector3;
1
+ import { Vector2, Vector3 } from '../../runtime';
2
+ import { Point2D } from '../Point2D';
3
+ import { Point3D } from '../Point3D';
4
+ /**
5
+ * 点
6
+ */
7
+ export type Point = Point2D | Point3D | Vector2 | Vector3;
@@ -1,4 +1,4 @@
1
- /**
2
- * 默认精度
3
- */
4
- export declare const EPSILON: number;
1
+ /**
2
+ * 默认精度
3
+ */
4
+ export declare const EPSILON: number;
@@ -1,8 +1,8 @@
1
- /**
2
- * 判断数字a是否大于或等于b
3
- * @param a 数字a
4
- * @param b 数字b
5
- * @param epsilon 精度,默认值0.0001
6
- * @returns 布尔值
7
- */
8
- export declare function greateThanOrEqual(a: number, b: number, epsilon?: number): boolean;
1
+ /**
2
+ * 判断数字a是否大于或等于b
3
+ * @param a 数字a
4
+ * @param b 数字b
5
+ * @param epsilon 精度,默认值0.0001
6
+ * @returns 布尔值
7
+ */
8
+ export declare function greateThanOrEqual(a: number, b: number, epsilon?: number): boolean;
@@ -1,7 +1,7 @@
1
- /**
2
- * 判断数字a是否大于数字b
3
- * @param a 数字a
4
- * @param b 数字b
5
- * @param epsilon 精度,默认值0.0001
6
- */
7
- export declare function greaterThan(a: number, b: number, epsilon?: number): boolean;
1
+ /**
2
+ * 判断数字a是否大于数字b
3
+ * @param a 数字a
4
+ * @param b 数字b
5
+ * @param epsilon 精度,默认值0.0001
6
+ */
7
+ export declare function greaterThan(a: number, b: number, epsilon?: number): boolean;
@@ -1,7 +1,7 @@
1
- /**
2
- * 判断数字a是否小于b
3
- * @param a 数字a
4
- * @param b 数字b
5
- * @param epsilon 精度,默认值0.0001
6
- */
7
- export declare function lessThan(a: number, b: number, epsilon?: number): boolean;
1
+ /**
2
+ * 判断数字a是否小于b
3
+ * @param a 数字a
4
+ * @param b 数字b
5
+ * @param epsilon 精度,默认值0.0001
6
+ */
7
+ export declare function lessThan(a: number, b: number, epsilon?: number): boolean;
@@ -1,7 +1,7 @@
1
- /**
2
- * 判断数字a是否小于或等于b
3
- * @param a 数字a
4
- * @param b 数字b
5
- * @param epsilon 精度,默认值0.0001
6
- */
7
- export declare function lessThanOrEqual(a: number, b: number, epsilon?: number): boolean;
1
+ /**
2
+ * 判断数字a是否小于或等于b
3
+ * @param a 数字a
4
+ * @param b 数字b
5
+ * @param epsilon 精度,默认值0.0001
6
+ */
7
+ export declare function lessThanOrEqual(a: number, b: number, epsilon?: number): boolean;
@@ -1,9 +1,9 @@
1
- import { Quaternion, Vector4 } from '../../../runtime';
2
- import { Point } from '../Point';
3
- /**
4
- * 判断2个变量(数字、数组、二维向量、三维向量、四维向量、四元数)的值是否近似相等
5
- * @param a 变量a
6
- * @param b 变量b
7
- * @param epsilon 精度,默认值0.0001
8
- */
9
- export declare function withinEpsilon<T = number | number[] | Point | Vector4 | Quaternion>(a: T, b: T, epsilon?: number): boolean;
1
+ import { Quaternion, Vector4 } from '../../../runtime';
2
+ import { Point } from '../Point';
3
+ /**
4
+ * 判断2个变量(数字、数组、二维向量、三维向量、四维向量、四元数)的值是否近似相等
5
+ * @param a 变量a
6
+ * @param b 变量b
7
+ * @param epsilon 精度,默认值0.0001
8
+ */
9
+ export declare function withinEpsilon<T = number | number[] | Point | Vector4 | Quaternion>(a: T, b: T, epsilon?: number): boolean;
@@ -1,34 +1,34 @@
1
- export * from './Line';
2
- export * from './Point';
3
- export * from './round';
4
- export * from './compare/EPSILON';
5
- export * from './compare/greaterThan';
6
- export * from './compare/greateThanOrEqual';
7
- export * from './compare/lessThan';
8
- export * from './compare/lessThanOrEqual';
9
- export * from './compare/withinEpsilon';
10
- export * from './line/distanceToParallelLine';
11
- export * from './line/distanceToProjection';
12
- export * from './line/getLineIntersection';
13
- export * from './line/isLineParallel';
14
- export * from './line/project';
15
- export * from './line/relateToPoint';
16
- export * from './segment/getSegmentIntersection';
17
- export * from './segment/getSegmentPartIncludePoint';
18
- export * from './segment/onSegment';
19
- export * from './segment/segmentFullInclude';
20
- export * from './vec/addTo';
21
- export * from './vec/angleTo';
22
- export * from './vec/centerTo';
23
- export * from './vec/cross';
24
- export * from './vec/distanceTo';
25
- export * from './vec/dot';
26
- export * from './vec/ignoreYAxis';
27
- export * from './vec/lengthTo';
28
- export * from './vec/multiplyTo';
29
- export * from './vec/normalizeTo';
30
- export * from './vec/scaleTo';
31
- export * from './vec/subtractTo';
32
- export * from './vec/toPoint';
33
- export * from './vec/toVector3';
34
- export * from './vec/verticalVector';
1
+ export * from './Line';
2
+ export * from './Point';
3
+ export * from './round';
4
+ export * from './compare/EPSILON';
5
+ export * from './compare/greaterThan';
6
+ export * from './compare/greateThanOrEqual';
7
+ export * from './compare/lessThan';
8
+ export * from './compare/lessThanOrEqual';
9
+ export * from './compare/withinEpsilon';
10
+ export * from './line/distanceToParallelLine';
11
+ export * from './line/distanceToProjection';
12
+ export * from './line/getLineIntersection';
13
+ export * from './line/isLineParallel';
14
+ export * from './line/project';
15
+ export * from './line/relateToPoint';
16
+ export * from './segment/getSegmentIntersection';
17
+ export * from './segment/getSegmentPartIncludePoint';
18
+ export * from './segment/onSegment';
19
+ export * from './segment/segmentFullInclude';
20
+ export * from './vec/addTo';
21
+ export * from './vec/angleTo';
22
+ export * from './vec/centerTo';
23
+ export * from './vec/cross';
24
+ export * from './vec/distanceTo';
25
+ export * from './vec/dot';
26
+ export * from './vec/ignoreYAxis';
27
+ export * from './vec/lengthTo';
28
+ export * from './vec/multiplyTo';
29
+ export * from './vec/normalizeTo';
30
+ export * from './vec/scaleTo';
31
+ export * from './vec/subtractTo';
32
+ export * from './vec/toPoint';
33
+ export * from './vec/toVector3';
34
+ export * from './vec/verticalVector';
@@ -1,7 +1,7 @@
1
- import { Line } from '../Line';
2
- /**
3
- * 计算平行线之间的距离
4
- * @param a 直线a
5
- * @param b 直线b
6
- */
7
- export declare function distanceToParallelLine(a: Line, b: Line): number;
1
+ import { Line } from '../Line';
2
+ /**
3
+ * 计算平行线之间的距离
4
+ * @param a 直线a
5
+ * @param b 直线b
6
+ */
7
+ export declare function distanceToParallelLine(a: Line, b: Line): number;
@@ -1,8 +1,8 @@
1
- import { Line } from '../Line';
2
- import { Point } from '../Point';
3
- /**
4
- * 求点到直线的投影距离(垂直距离、最短距离)
5
- * @param p 点p
6
- * @param line 直线
7
- */
8
- export declare function distanceToProjection(p: Point, line: Line): number;
1
+ import { Line } from '../Line';
2
+ import { Point } from '../Point';
3
+ /**
4
+ * 求点到直线的投影距离(垂直距离、最短距离)
5
+ * @param p 点p
6
+ * @param line 直线
7
+ */
8
+ export declare function distanceToProjection(p: Point, line: Line): number;
@@ -1,9 +1,9 @@
1
- import { Line } from '../Line';
2
- import { Point } from '../Point';
3
- /**
4
- * 获取2条直线的交点(若不相交则返回null)
5
- * @param line1 直线1
6
- * @param line2 直线2
7
- * @returns 交点
8
- */
9
- export declare function getLineIntersection(line1: Line, line2: Line): Point;
1
+ import { Line } from '../Line';
2
+ import { Point } from '../Point';
3
+ /**
4
+ * 获取2条直线的交点(若不相交则返回null)
5
+ * @param line1 直线1
6
+ * @param line2 直线2
7
+ * @returns 交点
8
+ */
9
+ export declare function getLineIntersection(line1: Line, line2: Line): Point;
@@ -1,7 +1,7 @@
1
- import { Line } from '../Line';
2
- /**
3
- * 判断两直线是否平行
4
- * @param a 直线a
5
- * @param b 直线b
6
- */
7
- export declare function isLineParallel(a: Line, b: Line): boolean;
1
+ import { Line } from '../Line';
2
+ /**
3
+ * 判断两直线是否平行
4
+ * @param a 直线a
5
+ * @param b 直线b
6
+ */
7
+ export declare function isLineParallel(a: Line, b: Line): boolean;
@@ -1,8 +1,8 @@
1
- import { Line } from '../Line';
2
- import { Point } from '../Point';
3
- /**
4
- * 求点到直线的投影点
5
- * @param p 点p
6
- * @param line 直线
7
- */
8
- export declare function project(p: Point, line: Line): Point;
1
+ import { Line } from '../Line';
2
+ import { Point } from '../Point';
3
+ /**
4
+ * 求点到直线的投影点
5
+ * @param p 点p
6
+ * @param line 直线
7
+ */
8
+ export declare function project(p: Point, line: Line): Point;
@@ -1,8 +1,8 @@
1
- import { Line } from '../Line';
2
- import { Point } from '../Point';
3
- /**
4
- * 判断点与直线的关系,0=共线,1=右侧,-1=左侧
5
- * @param p 点p
6
- * @param line 直线(线段,点的顺序不能互换)
7
- */
8
- export declare function relateToPoint(p: Point, line: Line): number;
1
+ import { Line } from '../Line';
2
+ import { Point } from '../Point';
3
+ /**
4
+ * 判断点与直线的关系,0=共线,1=右侧,-1=左侧
5
+ * @param p 点p
6
+ * @param line 直线(线段,点的顺序不能互换)
7
+ */
8
+ export declare function relateToPoint(p: Point, line: Line): number;
@@ -1,6 +1,6 @@
1
- /**
2
- * 四舍五入
3
- * @param value 数值
4
- * @param fractionDigits 保留的小数位数,默认4
5
- */
6
- export declare function round(value: number, fractionDigits?: number): number;
1
+ /**
2
+ * 四舍五入
3
+ * @param value 数值
4
+ * @param fractionDigits 保留的小数位数,默认4
5
+ */
6
+ export declare function round(value: number, fractionDigits?: number): number;
@@ -1,8 +1,8 @@
1
- import { Line } from '../Line';
2
- import { Point } from '../Point';
3
- /**
4
- * 获取两线段的交点
5
- * @param segment1 线段1
6
- * @param segment2 线段2
7
- */
8
- export declare function getSegmentIntersection(segment1: Line, segment2: Line): Point;
1
+ import { Line } from '../Line';
2
+ import { Point } from '../Point';
3
+ /**
4
+ * 获取两线段的交点
5
+ * @param segment1 线段1
6
+ * @param segment2 线段2
7
+ */
8
+ export declare function getSegmentIntersection(segment1: Line, segment2: Line): Point;
@@ -1,8 +1,8 @@
1
- import { Line } from '../Line';
2
- import { Point } from '../Point';
3
- /**
4
- * 获取线段1哪个端点与线段2部分包含
5
- * @param segment1 线段1
6
- * @param segment2 线段2
7
- */
8
- export declare function getSegmentPartIncludePoint(segment1: Line, segment2: Line): Point;
1
+ import { Line } from '../Line';
2
+ import { Point } from '../Point';
3
+ /**
4
+ * 获取线段1哪个端点与线段2部分包含
5
+ * @param segment1 线段1
6
+ * @param segment2 线段2
7
+ */
8
+ export declare function getSegmentPartIncludePoint(segment1: Line, segment2: Line): Point;
@@ -1,8 +1,8 @@
1
- import { Line } from '../Line';
2
- import { Point } from '../Point';
3
- /**
4
- * 判断点是否在线段上
5
- * @param p 点p
6
- * @param segment 线段
7
- */
8
- export declare function onSegment(p: Point, segment: Line): boolean;
1
+ import { Line } from '../Line';
2
+ import { Point } from '../Point';
3
+ /**
4
+ * 判断点是否在线段上
5
+ * @param p 点p
6
+ * @param segment 线段
7
+ */
8
+ export declare function onSegment(p: Point, segment: Line): boolean;
@@ -1,8 +1,8 @@
1
- import { Line } from '../Line';
2
- /**
3
- * 判断线段1是否完全包含线段2
4
- * @param segment1 线段1
5
- * @param segment2 线段2
6
- * @returns 布尔值
7
- */
8
- export declare function segmentFullInclude(segment1: Line, segment2: Line): boolean;
1
+ import { Line } from '../Line';
2
+ /**
3
+ * 判断线段1是否完全包含线段2
4
+ * @param segment1 线段1
5
+ * @param segment2 线段2
6
+ * @returns 布尔值
7
+ */
8
+ export declare function segmentFullInclude(segment1: Line, segment2: Line): boolean;
@@ -1,7 +1,7 @@
1
- import { Point } from '../Point';
2
- /**
3
- * 加法,返回一个新对象
4
- * @param a 点a
5
- * @param b 点b
6
- */
7
- export declare function addTo(a: Point, b: Point): Point;
1
+ import { Point } from '../Point';
2
+ /**
3
+ * 加法,返回一个新对象
4
+ * @param a 点a
5
+ * @param b 点b
6
+ */
7
+ export declare function addTo(a: Point, b: Point): Point;
@@ -1,7 +1,7 @@
1
- import { Point } from '../Point';
2
- /**
3
- * 求向量a到向量b的夹角
4
- * @param a 向量a
5
- * @param b 向量b
6
- */
7
- export declare function angleTo(a: Point, b: Point): number;
1
+ import { Point } from '../Point';
2
+ /**
3
+ * 求向量a到向量b的夹角
4
+ * @param a 向量a
5
+ * @param b 向量b
6
+ */
7
+ export declare function angleTo(a: Point, b: Point): number;
@@ -1,7 +1,7 @@
1
- import { Point } from '../Point';
2
- /**
3
- * 求两点的中心,返回一个新对象
4
- * @param a 点a
5
- * @param b 点b
6
- */
7
- export declare function centerTo(a: Point, b: Point): Point;
1
+ import { Point } from '../Point';
2
+ /**
3
+ * 求两点的中心,返回一个新对象
4
+ * @param a 点a
5
+ * @param b 点b
6
+ */
7
+ export declare function centerTo(a: Point, b: Point): Point;
@@ -1,7 +1,7 @@
1
- import { Point } from '../Point';
2
- /**
3
- * 叉乘(顺序相关,必须为三维点)
4
- * @param left 左向量
5
- * @param right 右向量
6
- */
7
- export declare function cross(left: Point, right: Point): Point;
1
+ import { Point } from '../Point';
2
+ /**
3
+ * 叉乘(顺序相关,必须为三维点)
4
+ * @param left 左向量
5
+ * @param right 右向量
6
+ */
7
+ export declare function cross(left: Point, right: Point): Point;
@@ -1,7 +1,7 @@
1
- import { Point } from '../Point';
2
- /**
3
- * 获取两点之间的距离
4
- * @param a 点a
5
- * @param b 点b
6
- */
7
- export declare function distanceTo(a: Point, b: Point): number;
1
+ import { Point } from '../Point';
2
+ /**
3
+ * 获取两点之间的距离
4
+ * @param a 点a
5
+ * @param b 点b
6
+ */
7
+ export declare function distanceTo(a: Point, b: Point): number;
@@ -1,7 +1,7 @@
1
- import { Point } from '../Point';
2
- /**
3
- * 点乘(顺序无关)
4
- * @param left 左向量
5
- * @param right 右向量
6
- */
7
- export declare function dot(left: Point, right: Point): number;
1
+ import { Point } from '../Point';
2
+ /**
3
+ * 点乘(顺序无关)
4
+ * @param left 左向量
5
+ * @param right 右向量
6
+ */
7
+ export declare function dot(left: Point, right: Point): number;
@@ -1,7 +1,7 @@
1
- import { Vector2, Vector3 } from '../../../runtime';
2
- /**
3
- * 去掉三维向量的Y轴,把向量投射到xz平面。
4
- * @param vec3 三维向量
5
- * @returns 二维向量
6
- */
7
- export declare function ignoreYAxis(vec3: Vector3): Vector2;
1
+ import { Vector2, Vector3 } from '../../../runtime';
2
+ /**
3
+ * 去掉三维向量的Y轴,把向量投射到xz平面。
4
+ * @param vec3 三维向量
5
+ * @returns 二维向量
6
+ */
7
+ export declare function ignoreYAxis(vec3: Vector3): Vector2;
@@ -1,6 +1,6 @@
1
- import { Point2D } from '../../Point2D';
2
- /**
3
- * 判断多边形顶点顺序是否为顺时针
4
- * @param poly 多边形顶点
5
- */
6
- export declare function isClockwise(poly: Point2D[]): boolean;
1
+ import { Point2D } from '../../Point2D';
2
+ /**
3
+ * 判断多边形顶点顺序是否为顺时针
4
+ * @param poly 多边形顶点
5
+ */
6
+ export declare function isClockwise(poly: Point2D[]): boolean;
@@ -1,6 +1,6 @@
1
- import { Point } from '../Point';
2
- /**
3
- * 求向量长度
4
- * @param p 点p
5
- */
6
- export declare function lengthTo(p: Point): number;
1
+ import { Point } from '../Point';
2
+ /**
3
+ * 求向量长度
4
+ * @param p 点p
5
+ */
6
+ export declare function lengthTo(p: Point): number;
@@ -1,7 +1,7 @@
1
- import { Point } from '../Point';
2
- /**
3
- * 乘法,返回一个新对象
4
- * @param a 点a
5
- * @param b 点b
6
- */
7
- export declare function multiplyTo(a: Point, b: Point): Point;
1
+ import { Point } from '../Point';
2
+ /**
3
+ * 乘法,返回一个新对象
4
+ * @param a 点a
5
+ * @param b 点b
6
+ */
7
+ export declare function multiplyTo(a: Point, b: Point): Point;
@@ -1,6 +1,6 @@
1
- import { Point } from '../Point';
2
- /**
3
- * 标准化,返回一个新对象
4
- * @param p 点
5
- */
6
- export declare function normalizeTo(p: Point): Point;
1
+ import { Point } from '../Point';
2
+ /**
3
+ * 标准化,返回一个新对象
4
+ * @param p 点
5
+ */
6
+ export declare function normalizeTo(p: Point): Point;
@@ -1,7 +1,7 @@
1
- import { Point } from '../Point';
2
- /**
3
- * 缩放,返回一个新对象
4
- * @param p 点p
5
- * @param scale 缩放倍数
6
- */
7
- export declare function scaleTo(p: Point, scale: number): Point;
1
+ import { Point } from '../Point';
2
+ /**
3
+ * 缩放,返回一个新对象
4
+ * @param p 点p
5
+ * @param scale 缩放倍数
6
+ */
7
+ export declare function scaleTo(p: Point, scale: number): Point;
@@ -1,7 +1,7 @@
1
- import { Point } from '../Point';
2
- /**
3
- * 减法,返回一个新对象
4
- * @param a 点a
5
- * @param b 点b
6
- */
7
- export declare function subtractTo(a: Point, b: Point): Point;
1
+ import { Point } from '../Point';
2
+ /**
3
+ * 减法,返回一个新对象
4
+ * @param a 点a
5
+ * @param b 点b
6
+ */
7
+ export declare function subtractTo(a: Point, b: Point): Point;
@@ -1,8 +1,8 @@
1
- import { Vector3 } from '../../../runtime';
2
- import { Point } from '../Point';
3
- /**
4
- * 将三维向量转换成点
5
- * @param a 参考点
6
- * @param p 三维向量
7
- */
8
- export declare function toPoint(a: Point, p: Vector3): Point;
1
+ import { Vector3 } from '../../../runtime';
2
+ import { Point } from '../Point';
3
+ /**
4
+ * 将三维向量转换成点
5
+ * @param a 参考点
6
+ * @param p 三维向量
7
+ */
8
+ export declare function toPoint(a: Point, p: Vector3): Point;
@@ -1,7 +1,7 @@
1
- import { Vector3 } from '../../../runtime';
2
- import { Point } from '../Point';
3
- /**
4
- * 将点转换成三维向量
5
- * @param p 点
6
- */
7
- export declare function toVector3(p: Point): Vector3;
1
+ import { Vector3 } from '../../../runtime';
2
+ import { Point } from '../Point';
3
+ /**
4
+ * 将点转换成三维向量
5
+ * @param p 点
6
+ */
7
+ export declare function toVector3(p: Point): Vector3;