@eturnity/eturnity_maths 7.24.0 → 7.24.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eturnity/eturnity_maths",
3
- "version": "7.24.0",
3
+ "version": "7.24.1",
4
4
  "author": "Eturnity Team",
5
5
  "main": "src/index.js",
6
6
  "private": false,
@@ -205,6 +205,9 @@ export class Line {
205
205
  }
206
206
  const polygon0 = polygons.find((p) => p.id == this.belongsTo[0].polygonId)
207
207
  const polygon1 = polygons.find((p) => p.id == this.belongsTo[1].polygonId)
208
+ if(!polygon0 || !polygon1){
209
+ return false
210
+ }
208
211
  let A, B, C, D
209
212
  if (this.belongsTo[0].index !== null) {
210
213
  A = polygon0.outline[this.belongsTo[0].index]