| | | 1 | | //======================================================================= |
| | | 2 | | // BoundarySpan3D.cs |
| | | 3 | | //======================================================================= |
| | | 4 | | // MIT License, Copyright (c) 2026-present David Oravsky (mrdav30) |
| | | 5 | | // See LICENSE file in the project root for full license information. |
| | | 6 | | //======================================================================= |
| | | 7 | | |
| | | 8 | | using FixedMathSharp; |
| | | 9 | | using FixedMathSharp.Geometry; |
| | | 10 | | |
| | | 11 | | namespace Gravitas.CollisionHandling; |
| | | 12 | | |
| | | 13 | | /// <summary> |
| | | 14 | | /// Stores a classified interval of an original mesh perimeter edge and its adjacent surface. |
| | | 15 | | /// </summary> |
| | | 16 | | internal readonly struct BoundarySpan3D |
| | | 17 | | { |
| | | 18 | | internal readonly int First, Second, OtherMember, OtherSurface; |
| | | 19 | | internal readonly Vector3d Start, End; |
| | | 20 | | internal readonly RationalSegmentInterval Interval; |
| | | 21 | | internal readonly SpanKind Kind; |
| | | 22 | | |
| | | 23 | | internal BoundarySpan3D(int first, int second, Vector3d start, Vector3d end, |
| | | 24 | | in RationalSegmentInterval interval, SpanKind kind, int otherMember, int otherSurface) |
| | | 25 | | { |
| | 27032 | 26 | | First = first; Second = second; Start = start; End = end; |
| | 27032 | 27 | | Interval = interval; Kind = kind; OtherMember = otherMember; OtherSurface = otherSurface; |
| | 6758 | 28 | | } |
| | | 29 | | } |