@immugio/three-math-extensions 0.2.24 → 0.2.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.
- package/CHANGELOG.md +118 -3
- package/cjs/Line2D.js +2 -2
- package/cjs/Polygon.js +5 -0
- package/docs/classes/BoundingBox.md +7 -7
- package/docs/classes/Line2D.md +69 -67
- package/docs/classes/Line3D.md +35 -35
- package/docs/classes/Polygon.md +51 -15
- package/docs/classes/Rectangle.md +17 -17
- package/docs/classes/Size2.md +3 -3
- package/docs/classes/Vec2.md +10 -10
- package/docs/classes/Vec3.md +13 -13
- package/docs/interfaces/Point2.md +2 -2
- package/docs/interfaces/Point3.md +3 -3
- package/docs/modules.md +30 -8
- package/esm/Line2D.js +2 -2
- package/esm/Polygon.js +5 -0
- package/package.json +1 -1
- package/src/Line2D.ts +3 -3
- package/src/Polygon.ts +10 -4
- package/types/Line2D.d.ts +2 -2
- package/types/Polygon.d.ts +4 -3
package/docs/classes/Line2D.md
CHANGED
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
|
|
95
95
|
#### Defined in
|
|
96
96
|
|
|
97
|
-
[src/Line2D.ts:15](https://github.com/Immugio/three-math-extensions/blob/
|
|
97
|
+
[src/Line2D.ts:15](https://github.com/Immugio/three-math-extensions/blob/e397290/src/Line2D.ts#L15)
|
|
98
98
|
|
|
99
99
|
## Properties
|
|
100
100
|
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
|
|
105
105
|
#### Defined in
|
|
106
106
|
|
|
107
|
-
[src/Line2D.ts:15](https://github.com/Immugio/three-math-extensions/blob/
|
|
107
|
+
[src/Line2D.ts:15](https://github.com/Immugio/three-math-extensions/blob/e397290/src/Line2D.ts#L15)
|
|
108
108
|
|
|
109
109
|
___
|
|
110
110
|
|
|
@@ -114,7 +114,7 @@ ___
|
|
|
114
114
|
|
|
115
115
|
#### Defined in
|
|
116
116
|
|
|
117
|
-
[src/Line2D.ts:15](https://github.com/Immugio/three-math-extensions/blob/
|
|
117
|
+
[src/Line2D.ts:15](https://github.com/Immugio/three-math-extensions/blob/e397290/src/Line2D.ts#L15)
|
|
118
118
|
|
|
119
119
|
___
|
|
120
120
|
|
|
@@ -124,7 +124,7 @@ ___
|
|
|
124
124
|
|
|
125
125
|
#### Defined in
|
|
126
126
|
|
|
127
|
-
[src/Line2D.ts:15](https://github.com/Immugio/three-math-extensions/blob/
|
|
127
|
+
[src/Line2D.ts:15](https://github.com/Immugio/three-math-extensions/blob/e397290/src/Line2D.ts#L15)
|
|
128
128
|
|
|
129
129
|
## Accessors
|
|
130
130
|
|
|
@@ -138,7 +138,7 @@ ___
|
|
|
138
138
|
|
|
139
139
|
#### Defined in
|
|
140
140
|
|
|
141
|
-
[src/Line2D.ts:52](https://github.com/Immugio/three-math-extensions/blob/
|
|
141
|
+
[src/Line2D.ts:52](https://github.com/Immugio/three-math-extensions/blob/e397290/src/Line2D.ts#L52)
|
|
142
142
|
|
|
143
143
|
• `set` **center**(`value`): `void`
|
|
144
144
|
|
|
@@ -157,7 +157,7 @@ Modifies this line.
|
|
|
157
157
|
|
|
158
158
|
#### Defined in
|
|
159
159
|
|
|
160
|
-
[src/Line2D.ts:61](https://github.com/Immugio/three-math-extensions/blob/
|
|
160
|
+
[src/Line2D.ts:61](https://github.com/Immugio/three-math-extensions/blob/e397290/src/Line2D.ts#L61)
|
|
161
161
|
|
|
162
162
|
___
|
|
163
163
|
|
|
@@ -173,7 +173,7 @@ Returns the direction of this line.
|
|
|
173
173
|
|
|
174
174
|
#### Defined in
|
|
175
175
|
|
|
176
|
-
[src/Line2D.ts:209](https://github.com/Immugio/three-math-extensions/blob/
|
|
176
|
+
[src/Line2D.ts:209](https://github.com/Immugio/three-math-extensions/blob/e397290/src/Line2D.ts#L209)
|
|
177
177
|
|
|
178
178
|
___
|
|
179
179
|
|
|
@@ -190,7 +190,7 @@ Endpoints are not cloned.
|
|
|
190
190
|
|
|
191
191
|
#### Defined in
|
|
192
192
|
|
|
193
|
-
[src/Line2D.ts:161](https://github.com/Immugio/three-math-extensions/blob/
|
|
193
|
+
[src/Line2D.ts:161](https://github.com/Immugio/three-math-extensions/blob/e397290/src/Line2D.ts#L161)
|
|
194
194
|
|
|
195
195
|
___
|
|
196
196
|
|
|
@@ -204,7 +204,7 @@ ___
|
|
|
204
204
|
|
|
205
205
|
#### Defined in
|
|
206
206
|
|
|
207
|
-
[src/Line2D.ts:766](https://github.com/Immugio/three-math-extensions/blob/
|
|
207
|
+
[src/Line2D.ts:766](https://github.com/Immugio/three-math-extensions/blob/e397290/src/Line2D.ts#L766)
|
|
208
208
|
|
|
209
209
|
___
|
|
210
210
|
|
|
@@ -218,7 +218,7 @@ ___
|
|
|
218
218
|
|
|
219
219
|
#### Defined in
|
|
220
220
|
|
|
221
|
-
[src/Line2D.ts:771](https://github.com/Immugio/three-math-extensions/blob/
|
|
221
|
+
[src/Line2D.ts:771](https://github.com/Immugio/three-math-extensions/blob/e397290/src/Line2D.ts#L771)
|
|
222
222
|
|
|
223
223
|
___
|
|
224
224
|
|
|
@@ -232,7 +232,7 @@ ___
|
|
|
232
232
|
|
|
233
233
|
#### Defined in
|
|
234
234
|
|
|
235
|
-
[src/Line2D.ts:144](https://github.com/Immugio/three-math-extensions/blob/
|
|
235
|
+
[src/Line2D.ts:144](https://github.com/Immugio/three-math-extensions/blob/e397290/src/Line2D.ts#L144)
|
|
236
236
|
|
|
237
237
|
• `set` **length**(`l`): `void`
|
|
238
238
|
|
|
@@ -251,7 +251,7 @@ Modifies this line.
|
|
|
251
251
|
|
|
252
252
|
#### Defined in
|
|
253
253
|
|
|
254
|
-
[src/Line2D.ts:139](https://github.com/Immugio/three-math-extensions/blob/
|
|
254
|
+
[src/Line2D.ts:139](https://github.com/Immugio/three-math-extensions/blob/e397290/src/Line2D.ts#L139)
|
|
255
255
|
|
|
256
256
|
## Methods
|
|
257
257
|
|
|
@@ -274,7 +274,7 @@ Clone the line, does not modify.
|
|
|
274
274
|
|
|
275
275
|
#### Defined in
|
|
276
276
|
|
|
277
|
-
[src/Line2D.ts:479](https://github.com/Immugio/three-math-extensions/blob/
|
|
277
|
+
[src/Line2D.ts:479](https://github.com/Immugio/three-math-extensions/blob/e397290/src/Line2D.ts#L479)
|
|
278
278
|
|
|
279
279
|
___
|
|
280
280
|
|
|
@@ -290,7 +290,7 @@ Deep clone of this line
|
|
|
290
290
|
|
|
291
291
|
#### Defined in
|
|
292
292
|
|
|
293
|
-
[src/Line2D.ts:850](https://github.com/Immugio/three-math-extensions/blob/
|
|
293
|
+
[src/Line2D.ts:850](https://github.com/Immugio/three-math-extensions/blob/e397290/src/Line2D.ts#L850)
|
|
294
294
|
|
|
295
295
|
___
|
|
296
296
|
|
|
@@ -314,7 +314,7 @@ Returns the closest point on the line to the given point.
|
|
|
314
314
|
|
|
315
315
|
#### Defined in
|
|
316
316
|
|
|
317
|
-
[src/Line2D.ts:498](https://github.com/Immugio/three-math-extensions/blob/
|
|
317
|
+
[src/Line2D.ts:498](https://github.com/Immugio/three-math-extensions/blob/e397290/src/Line2D.ts#L498)
|
|
318
318
|
|
|
319
319
|
___
|
|
320
320
|
|
|
@@ -326,8 +326,8 @@ ___
|
|
|
326
326
|
|
|
327
327
|
| Name | Type |
|
|
328
328
|
| :------ | :------ |
|
|
329
|
-
| `point` | `
|
|
330
|
-
| `clampToLine` | `
|
|
329
|
+
| `point` | `Vector2` |
|
|
330
|
+
| `clampToLine` | `boolean` |
|
|
331
331
|
|
|
332
332
|
#### Returns
|
|
333
333
|
|
|
@@ -335,7 +335,7 @@ ___
|
|
|
335
335
|
|
|
336
336
|
#### Defined in
|
|
337
337
|
|
|
338
|
-
[src/Line2D.ts:507](https://github.com/Immugio/three-math-extensions/blob/
|
|
338
|
+
[src/Line2D.ts:507](https://github.com/Immugio/three-math-extensions/blob/e397290/src/Line2D.ts#L507)
|
|
339
339
|
|
|
340
340
|
___
|
|
341
341
|
|
|
@@ -363,7 +363,7 @@ line's endpoints.
|
|
|
363
363
|
|
|
364
364
|
#### Defined in
|
|
365
365
|
|
|
366
|
-
[src/Line2D.ts:821](https://github.com/Immugio/three-math-extensions/blob/
|
|
366
|
+
[src/Line2D.ts:821](https://github.com/Immugio/three-math-extensions/blob/e397290/src/Line2D.ts#L821)
|
|
367
367
|
|
|
368
368
|
___
|
|
369
369
|
|
|
@@ -386,7 +386,7 @@ Check that this line segment contains provided point.
|
|
|
386
386
|
|
|
387
387
|
#### Defined in
|
|
388
388
|
|
|
389
|
-
[src/Line2D.ts:170](https://github.com/Immugio/three-math-extensions/blob/
|
|
389
|
+
[src/Line2D.ts:170](https://github.com/Immugio/three-math-extensions/blob/e397290/src/Line2D.ts#L170)
|
|
390
390
|
|
|
391
391
|
___
|
|
392
392
|
|
|
@@ -412,7 +412,7 @@ Both distance and angle tolerance can be provided.
|
|
|
412
412
|
|
|
413
413
|
#### Defined in
|
|
414
414
|
|
|
415
|
-
[src/Line2D.ts:454](https://github.com/Immugio/three-math-extensions/blob/
|
|
415
|
+
[src/Line2D.ts:454](https://github.com/Immugio/three-math-extensions/blob/e397290/src/Line2D.ts#L454)
|
|
416
416
|
|
|
417
417
|
___
|
|
418
418
|
|
|
@@ -432,7 +432,7 @@ ___
|
|
|
432
432
|
|
|
433
433
|
#### Defined in
|
|
434
434
|
|
|
435
|
-
[src/Line2D.ts:503](https://github.com/Immugio/three-math-extensions/blob/
|
|
435
|
+
[src/Line2D.ts:503](https://github.com/Immugio/three-math-extensions/blob/e397290/src/Line2D.ts#L503)
|
|
436
436
|
|
|
437
437
|
___
|
|
438
438
|
|
|
@@ -455,7 +455,7 @@ Distance from this line to the provided point.
|
|
|
455
455
|
|
|
456
456
|
#### Defined in
|
|
457
457
|
|
|
458
|
-
[src/Line2D.ts:180](https://github.com/Immugio/three-math-extensions/blob/
|
|
458
|
+
[src/Line2D.ts:180](https://github.com/Immugio/three-math-extensions/blob/e397290/src/Line2D.ts#L180)
|
|
459
459
|
|
|
460
460
|
___
|
|
461
461
|
|
|
@@ -477,7 +477,7 @@ Returns the distance between the **infinite** line and the point.
|
|
|
477
477
|
|
|
478
478
|
#### Defined in
|
|
479
479
|
|
|
480
|
-
[src/Line2D.ts:527](https://github.com/Immugio/three-math-extensions/blob/
|
|
480
|
+
[src/Line2D.ts:527](https://github.com/Immugio/three-math-extensions/blob/e397290/src/Line2D.ts#L527)
|
|
481
481
|
|
|
482
482
|
___
|
|
483
483
|
|
|
@@ -498,7 +498,7 @@ ___
|
|
|
498
498
|
|
|
499
499
|
#### Defined in
|
|
500
500
|
|
|
501
|
-
[src/Line2D.ts:839](https://github.com/Immugio/three-math-extensions/blob/
|
|
501
|
+
[src/Line2D.ts:839](https://github.com/Immugio/three-math-extensions/blob/e397290/src/Line2D.ts#L839)
|
|
502
502
|
|
|
503
503
|
___
|
|
504
504
|
|
|
@@ -522,7 +522,7 @@ Does not create a copy. Provided line is modified.
|
|
|
522
522
|
|
|
523
523
|
#### Defined in
|
|
524
524
|
|
|
525
|
-
[src/Line2D.ts:664](https://github.com/Immugio/three-math-extensions/blob/
|
|
525
|
+
[src/Line2D.ts:664](https://github.com/Immugio/three-math-extensions/blob/e397290/src/Line2D.ts#L664)
|
|
526
526
|
|
|
527
527
|
___
|
|
528
528
|
|
|
@@ -546,7 +546,7 @@ Modifies this line.
|
|
|
546
546
|
|
|
547
547
|
#### Defined in
|
|
548
548
|
|
|
549
|
-
[src/Line2D.ts:685](https://github.com/Immugio/three-math-extensions/blob/
|
|
549
|
+
[src/Line2D.ts:685](https://github.com/Immugio/three-math-extensions/blob/e397290/src/Line2D.ts#L685)
|
|
550
550
|
|
|
551
551
|
___
|
|
552
552
|
|
|
@@ -563,7 +563,7 @@ Modifies this line.
|
|
|
563
563
|
|
|
564
564
|
#### Defined in
|
|
565
565
|
|
|
566
|
-
[src/Line2D.ts:217](https://github.com/Immugio/three-math-extensions/blob/
|
|
566
|
+
[src/Line2D.ts:217](https://github.com/Immugio/three-math-extensions/blob/e397290/src/Line2D.ts#L217)
|
|
567
567
|
|
|
568
568
|
___
|
|
569
569
|
|
|
@@ -585,7 +585,7 @@ Logical AND of this and the other line section.
|
|
|
585
585
|
|
|
586
586
|
#### Defined in
|
|
587
587
|
|
|
588
|
-
[src/Line2D.ts:367](https://github.com/Immugio/three-math-extensions/blob/
|
|
588
|
+
[src/Line2D.ts:367](https://github.com/Immugio/three-math-extensions/blob/e397290/src/Line2D.ts#L367)
|
|
589
589
|
|
|
590
590
|
___
|
|
591
591
|
|
|
@@ -617,7 +617,7 @@ Returns null if lines are not parallel.
|
|
|
617
617
|
|
|
618
618
|
#### Defined in
|
|
619
619
|
|
|
620
|
-
[src/Line2D.ts:191](https://github.com/Immugio/three-math-extensions/blob/
|
|
620
|
+
[src/Line2D.ts:191](https://github.com/Immugio/three-math-extensions/blob/e397290/src/Line2D.ts#L191)
|
|
621
621
|
|
|
622
622
|
___
|
|
623
623
|
|
|
@@ -642,7 +642,7 @@ Check that the line section intersect and that they are in the specified angle t
|
|
|
642
642
|
|
|
643
643
|
#### Defined in
|
|
644
644
|
|
|
645
|
-
[src/Line2D.ts:747](https://github.com/Immugio/three-math-extensions/blob/
|
|
645
|
+
[src/Line2D.ts:747](https://github.com/Immugio/three-math-extensions/blob/e397290/src/Line2D.ts#L747)
|
|
646
646
|
|
|
647
647
|
___
|
|
648
648
|
|
|
@@ -666,7 +666,7 @@ A new Line3D instance.
|
|
|
666
666
|
|
|
667
667
|
#### Defined in
|
|
668
668
|
|
|
669
|
-
[src/Line2D.ts:835](https://github.com/Immugio/three-math-extensions/blob/
|
|
669
|
+
[src/Line2D.ts:835](https://github.com/Immugio/three-math-extensions/blob/e397290/src/Line2D.ts#L835)
|
|
670
670
|
|
|
671
671
|
___
|
|
672
672
|
|
|
@@ -689,7 +689,7 @@ Returns the intersection point of two lines.
|
|
|
689
689
|
|
|
690
690
|
#### Defined in
|
|
691
691
|
|
|
692
|
-
[src/Line2D.ts:710](https://github.com/Immugio/three-math-extensions/blob/
|
|
692
|
+
[src/Line2D.ts:710](https://github.com/Immugio/three-math-extensions/blob/e397290/src/Line2D.ts#L710)
|
|
693
693
|
|
|
694
694
|
___
|
|
695
695
|
|
|
@@ -711,7 +711,7 @@ Returns true if other line is collinear and overlaps or at least touching this l
|
|
|
711
711
|
|
|
712
712
|
#### Defined in
|
|
713
713
|
|
|
714
|
-
[src/Line2D.ts:317](https://github.com/Immugio/three-math-extensions/blob/
|
|
714
|
+
[src/Line2D.ts:317](https://github.com/Immugio/three-math-extensions/blob/e397290/src/Line2D.ts#L317)
|
|
715
715
|
|
|
716
716
|
___
|
|
717
717
|
|
|
@@ -732,7 +732,7 @@ ___
|
|
|
732
732
|
|
|
733
733
|
#### Defined in
|
|
734
734
|
|
|
735
|
-
[src/Line2D.ts:91](https://github.com/Immugio/three-math-extensions/blob/
|
|
735
|
+
[src/Line2D.ts:91](https://github.com/Immugio/three-math-extensions/blob/e397290/src/Line2D.ts#L91)
|
|
736
736
|
|
|
737
737
|
___
|
|
738
738
|
|
|
@@ -754,7 +754,7 @@ Returns true when the point is beside the line **segment**
|
|
|
754
754
|
|
|
755
755
|
#### Defined in
|
|
756
756
|
|
|
757
|
-
[src/Line2D.ts:297](https://github.com/Immugio/three-math-extensions/blob/
|
|
757
|
+
[src/Line2D.ts:297](https://github.com/Immugio/three-math-extensions/blob/e397290/src/Line2D.ts#L297)
|
|
758
758
|
|
|
759
759
|
___
|
|
760
760
|
|
|
@@ -777,7 +777,7 @@ Returns true when the point is beside the line **segment** and within the maxDis
|
|
|
777
777
|
|
|
778
778
|
#### Defined in
|
|
779
779
|
|
|
780
|
-
[src/Line2D.ts:288](https://github.com/Immugio/three-math-extensions/blob/
|
|
780
|
+
[src/Line2D.ts:288](https://github.com/Immugio/three-math-extensions/blob/e397290/src/Line2D.ts#L288)
|
|
781
781
|
|
|
782
782
|
___
|
|
783
783
|
|
|
@@ -799,7 +799,7 @@ Returns true when the point is on the **infinite** line.
|
|
|
799
799
|
|
|
800
800
|
#### Defined in
|
|
801
801
|
|
|
802
|
-
[src/Line2D.ts:309](https://github.com/Immugio/three-math-extensions/blob/
|
|
802
|
+
[src/Line2D.ts:309](https://github.com/Immugio/three-math-extensions/blob/e397290/src/Line2D.ts#L309)
|
|
803
803
|
|
|
804
804
|
___
|
|
805
805
|
|
|
@@ -823,7 +823,7 @@ https://stackoverflow.com/questions/6865832/detecting-if-a-point-is-of-a-line-se
|
|
|
823
823
|
|
|
824
824
|
#### Defined in
|
|
825
825
|
|
|
826
|
-
[src/Line2D.ts:275](https://github.com/Immugio/three-math-extensions/blob/
|
|
826
|
+
[src/Line2D.ts:275](https://github.com/Immugio/three-math-extensions/blob/e397290/src/Line2D.ts#L275)
|
|
827
827
|
|
|
828
828
|
___
|
|
829
829
|
|
|
@@ -846,7 +846,7 @@ Modifies this line.
|
|
|
846
846
|
|
|
847
847
|
#### Defined in
|
|
848
848
|
|
|
849
|
-
[src/Line2D.ts:119](https://github.com/Immugio/three-math-extensions/blob/
|
|
849
|
+
[src/Line2D.ts:119](https://github.com/Immugio/three-math-extensions/blob/e397290/src/Line2D.ts#L119)
|
|
850
850
|
|
|
851
851
|
___
|
|
852
852
|
|
|
@@ -866,7 +866,7 @@ ___
|
|
|
866
866
|
|
|
867
867
|
#### Defined in
|
|
868
868
|
|
|
869
|
-
[src/Line2D.ts:108](https://github.com/Immugio/three-math-extensions/blob/
|
|
869
|
+
[src/Line2D.ts:108](https://github.com/Immugio/three-math-extensions/blob/e397290/src/Line2D.ts#L108)
|
|
870
870
|
|
|
871
871
|
___
|
|
872
872
|
|
|
@@ -894,7 +894,7 @@ line section.
|
|
|
894
894
|
|
|
895
895
|
#### Defined in
|
|
896
896
|
|
|
897
|
-
[src/Line2D.ts:329](https://github.com/Immugio/three-math-extensions/blob/
|
|
897
|
+
[src/Line2D.ts:329](https://github.com/Immugio/three-math-extensions/blob/e397290/src/Line2D.ts#L329)
|
|
898
898
|
|
|
899
899
|
___
|
|
900
900
|
|
|
@@ -917,7 +917,7 @@ Returns a new line that is the projection of this line onto @other. Uses `closes
|
|
|
917
917
|
|
|
918
918
|
#### Defined in
|
|
919
919
|
|
|
920
|
-
[src/Line2D.ts:467](https://github.com/Immugio/three-math-extensions/blob/
|
|
920
|
+
[src/Line2D.ts:467](https://github.com/Immugio/three-math-extensions/blob/e397290/src/Line2D.ts#L467)
|
|
921
921
|
|
|
922
922
|
___
|
|
923
923
|
|
|
@@ -937,7 +937,7 @@ ___
|
|
|
937
937
|
|
|
938
938
|
#### Defined in
|
|
939
939
|
|
|
940
|
-
[src/Line2D.ts:85](https://github.com/Immugio/three-math-extensions/blob/
|
|
940
|
+
[src/Line2D.ts:85](https://github.com/Immugio/three-math-extensions/blob/e397290/src/Line2D.ts#L85)
|
|
941
941
|
|
|
942
942
|
___
|
|
943
943
|
|
|
@@ -961,7 +961,7 @@ Modifies this line.
|
|
|
961
961
|
|
|
962
962
|
#### Defined in
|
|
963
963
|
|
|
964
|
-
[src/Line2D.ts:231](https://github.com/Immugio/three-math-extensions/blob/
|
|
964
|
+
[src/Line2D.ts:231](https://github.com/Immugio/three-math-extensions/blob/e397290/src/Line2D.ts#L231)
|
|
965
965
|
|
|
966
966
|
___
|
|
967
967
|
|
|
@@ -984,7 +984,7 @@ Modifies this line.
|
|
|
984
984
|
|
|
985
985
|
#### Defined in
|
|
986
986
|
|
|
987
|
-
[src/Line2D.ts:76](https://github.com/Immugio/three-math-extensions/blob/
|
|
987
|
+
[src/Line2D.ts:76](https://github.com/Immugio/three-math-extensions/blob/e397290/src/Line2D.ts#L76)
|
|
988
988
|
|
|
989
989
|
___
|
|
990
990
|
|
|
@@ -1006,7 +1006,7 @@ Set the length of this line. Center and direction remain unchanged.
|
|
|
1006
1006
|
|
|
1007
1007
|
#### Defined in
|
|
1008
1008
|
|
|
1009
|
-
[src/Line2D.ts:152](https://github.com/Immugio/three-math-extensions/blob/
|
|
1009
|
+
[src/Line2D.ts:152](https://github.com/Immugio/three-math-extensions/blob/e397290/src/Line2D.ts#L152)
|
|
1010
1010
|
|
|
1011
1011
|
___
|
|
1012
1012
|
|
|
@@ -1029,7 +1029,7 @@ Returns the original line section split into two parts, if the line **sections**
|
|
|
1029
1029
|
|
|
1030
1030
|
#### Defined in
|
|
1031
1031
|
|
|
1032
|
-
[src/Line2D.ts:580](https://github.com/Immugio/three-math-extensions/blob/
|
|
1032
|
+
[src/Line2D.ts:580](https://github.com/Immugio/three-math-extensions/blob/e397290/src/Line2D.ts#L580)
|
|
1033
1033
|
|
|
1034
1034
|
___
|
|
1035
1035
|
|
|
@@ -1053,7 +1053,7 @@ Otherwise, null if the lines are parallel and do not intersect
|
|
|
1053
1053
|
|
|
1054
1054
|
#### Defined in
|
|
1055
1055
|
|
|
1056
|
-
[src/Line2D.ts:599](https://github.com/Immugio/three-math-extensions/blob/
|
|
1056
|
+
[src/Line2D.ts:599](https://github.com/Immugio/three-math-extensions/blob/e397290/src/Line2D.ts#L599)
|
|
1057
1057
|
|
|
1058
1058
|
___
|
|
1059
1059
|
|
|
@@ -1067,7 +1067,7 @@ ___
|
|
|
1067
1067
|
|
|
1068
1068
|
#### Defined in
|
|
1069
1069
|
|
|
1070
|
-
[src/Line2D.ts:854](https://github.com/Immugio/three-math-extensions/blob/
|
|
1070
|
+
[src/Line2D.ts:854](https://github.com/Immugio/three-math-extensions/blob/e397290/src/Line2D.ts#L854)
|
|
1071
1071
|
|
|
1072
1072
|
___
|
|
1073
1073
|
|
|
@@ -1090,7 +1090,7 @@ Modifies this line.
|
|
|
1090
1090
|
|
|
1091
1091
|
#### Defined in
|
|
1092
1092
|
|
|
1093
|
-
[src/Line2D.ts:242](https://github.com/Immugio/three-math-extensions/blob/
|
|
1093
|
+
[src/Line2D.ts:242](https://github.com/Immugio/three-math-extensions/blob/e397290/src/Line2D.ts#L242)
|
|
1094
1094
|
|
|
1095
1095
|
___
|
|
1096
1096
|
|
|
@@ -1113,7 +1113,7 @@ Modifies this line.
|
|
|
1113
1113
|
|
|
1114
1114
|
#### Defined in
|
|
1115
1115
|
|
|
1116
|
-
[src/Line2D.ts:255](https://github.com/Immugio/three-math-extensions/blob/
|
|
1116
|
+
[src/Line2D.ts:255](https://github.com/Immugio/three-math-extensions/blob/e397290/src/Line2D.ts#L255)
|
|
1117
1117
|
|
|
1118
1118
|
___
|
|
1119
1119
|
|
|
@@ -1136,7 +1136,7 @@ Modifies this line.
|
|
|
1136
1136
|
|
|
1137
1137
|
#### Defined in
|
|
1138
1138
|
|
|
1139
|
-
[src/Line2D.ts:264](https://github.com/Immugio/three-math-extensions/blob/
|
|
1139
|
+
[src/Line2D.ts:264](https://github.com/Immugio/three-math-extensions/blob/e397290/src/Line2D.ts#L264)
|
|
1140
1140
|
|
|
1141
1141
|
___
|
|
1142
1142
|
|
|
@@ -1159,22 +1159,24 @@ Does not create a copy. Provided line is modified.
|
|
|
1159
1159
|
|
|
1160
1160
|
#### Defined in
|
|
1161
1161
|
|
|
1162
|
-
[src/Line2D.ts:642](https://github.com/Immugio/three-math-extensions/blob/
|
|
1162
|
+
[src/Line2D.ts:642](https://github.com/Immugio/three-math-extensions/blob/e397290/src/Line2D.ts#L642)
|
|
1163
1163
|
|
|
1164
1164
|
___
|
|
1165
1165
|
|
|
1166
1166
|
### clipLines
|
|
1167
1167
|
|
|
1168
|
-
▸ **clipLines**(`source`, `clips`): [`Line2D`](Line2D.md)[]
|
|
1168
|
+
▸ **clipLines**(`source`, `clips`, `distanceTolerance?`, `parallelTolerance?`): [`Line2D`](Line2D.md)[]
|
|
1169
1169
|
|
|
1170
1170
|
Returns lines that are the result of clipping
|
|
1171
1171
|
|
|
1172
1172
|
#### Parameters
|
|
1173
1173
|
|
|
1174
|
-
| Name | Type |
|
|
1175
|
-
| :------ | :------ |
|
|
1176
|
-
| `source` | [`Line2D`](Line2D.md) |
|
|
1177
|
-
| `clips` | [`Line2D`](Line2D.md)[] |
|
|
1174
|
+
| Name | Type | Default value |
|
|
1175
|
+
| :------ | :------ | :------ |
|
|
1176
|
+
| `source` | [`Line2D`](Line2D.md) | `undefined` |
|
|
1177
|
+
| `clips` | [`Line2D`](Line2D.md)[] | `undefined` |
|
|
1178
|
+
| `distanceTolerance` | `number` | `0` |
|
|
1179
|
+
| `parallelTolerance` | `number` | `0` |
|
|
1178
1180
|
|
|
1179
1181
|
#### Returns
|
|
1180
1182
|
|
|
@@ -1188,7 +1190,7 @@ Clones the line, does not modify this.
|
|
|
1188
1190
|
|
|
1189
1191
|
#### Defined in
|
|
1190
1192
|
|
|
1191
|
-
[src/Line2D.ts:541](https://github.com/Immugio/three-math-extensions/blob/
|
|
1193
|
+
[src/Line2D.ts:541](https://github.com/Immugio/three-math-extensions/blob/e397290/src/Line2D.ts#L541)
|
|
1192
1194
|
|
|
1193
1195
|
___
|
|
1194
1196
|
|
|
@@ -1212,7 +1214,7 @@ ___
|
|
|
1212
1214
|
|
|
1213
1215
|
#### Defined in
|
|
1214
1216
|
|
|
1215
|
-
[src/Line2D.ts:18](https://github.com/Immugio/three-math-extensions/blob/
|
|
1217
|
+
[src/Line2D.ts:18](https://github.com/Immugio/three-math-extensions/blob/e397290/src/Line2D.ts#L18)
|
|
1216
1218
|
|
|
1217
1219
|
___
|
|
1218
1220
|
|
|
@@ -1232,7 +1234,7 @@ ___
|
|
|
1232
1234
|
|
|
1233
1235
|
#### Defined in
|
|
1234
1236
|
|
|
1235
|
-
[src/Line2D.ts:48](https://github.com/Immugio/three-math-extensions/blob/
|
|
1237
|
+
[src/Line2D.ts:48](https://github.com/Immugio/three-math-extensions/blob/e397290/src/Line2D.ts#L48)
|
|
1236
1238
|
|
|
1237
1239
|
___
|
|
1238
1240
|
|
|
@@ -1254,7 +1256,7 @@ ___
|
|
|
1254
1256
|
|
|
1255
1257
|
#### Defined in
|
|
1256
1258
|
|
|
1257
|
-
[src/Line2D.ts:22](https://github.com/Immugio/three-math-extensions/blob/
|
|
1259
|
+
[src/Line2D.ts:22](https://github.com/Immugio/three-math-extensions/blob/e397290/src/Line2D.ts#L22)
|
|
1258
1260
|
|
|
1259
1261
|
___
|
|
1260
1262
|
|
|
@@ -1279,7 +1281,7 @@ The polygon will only be closed if either
|
|
|
1279
1281
|
|
|
1280
1282
|
#### Defined in
|
|
1281
1283
|
|
|
1282
|
-
[src/Line2D.ts:31](https://github.com/Immugio/three-math-extensions/blob/
|
|
1284
|
+
[src/Line2D.ts:31](https://github.com/Immugio/three-math-extensions/blob/e397290/src/Line2D.ts#L31)
|
|
1283
1285
|
|
|
1284
1286
|
___
|
|
1285
1287
|
|
|
@@ -1303,7 +1305,7 @@ Accepts an array of Line2D and groups them into arrays of connected lines
|
|
|
1303
1305
|
|
|
1304
1306
|
#### Defined in
|
|
1305
1307
|
|
|
1306
|
-
[src/Line2D.ts:781](https://github.com/Immugio/three-math-extensions/blob/
|
|
1308
|
+
[src/Line2D.ts:781](https://github.com/Immugio/three-math-extensions/blob/e397290/src/Line2D.ts#L781)
|
|
1307
1309
|
|
|
1308
1310
|
___
|
|
1309
1311
|
|
|
@@ -1337,7 +1339,7 @@ Clones the line, does not modify.
|
|
|
1337
1339
|
|
|
1338
1340
|
#### Defined in
|
|
1339
1341
|
|
|
1340
|
-
[src/Line2D.ts:401](https://github.com/Immugio/three-math-extensions/blob/
|
|
1342
|
+
[src/Line2D.ts:401](https://github.com/Immugio/three-math-extensions/blob/e397290/src/Line2D.ts#L401)
|
|
1341
1343
|
|
|
1342
1344
|
___
|
|
1343
1345
|
|
|
@@ -1361,4 +1363,4 @@ Clone the lines, does not modify.
|
|
|
1361
1363
|
|
|
1362
1364
|
#### Defined in
|
|
1363
1365
|
|
|
1364
|
-
[src/Line2D.ts:418](https://github.com/Immugio/three-math-extensions/blob/
|
|
1366
|
+
[src/Line2D.ts:418](https://github.com/Immugio/three-math-extensions/blob/e397290/src/Line2D.ts#L418)
|