| | | 1 | | //======================================================================= |
| | | 2 | | // FiniteSlabRaySelectionMetadata.cs |
| | | 3 | | //======================================================================= |
| | | 4 | | // MIT License, Copyright (c) 2024-present David Oravsky (mrdav30) |
| | | 5 | | // See LICENSE file in the project root for full license information. |
| | | 6 | | //======================================================================= |
| | | 7 | | |
| | | 8 | | using System; |
| | | 9 | | |
| | | 10 | | namespace FixedMathSharp.Geometry; |
| | | 11 | | |
| | | 12 | | internal readonly struct FiniteSlabRaySelectionMetadata |
| | | 13 | | { |
| | | 14 | | internal readonly bool HasValue, ParameterIsDepth, HasCompactCell, IsRational; |
| | | 15 | | internal readonly int Ordinal, RootCount, CoefficientCount, Orientation, DenominatorShift; |
| | | 16 | | /// <summary> |
| | | 17 | | /// Bit i marks an active authored domain edge i that generated this event; |
| | | 18 | | /// clipped segment queries additionally use bits 3/4 for their rational cuts. |
| | | 19 | | /// Zero marks a shape-intrinsic event, which remains intrinsic when its |
| | | 20 | | /// source point happens to coincide with a covered mesh seam. |
| | | 21 | | /// </summary> |
| | | 22 | | internal readonly int DomainEdgeMask; |
| | | 23 | | internal readonly FixedTriangle Triangle; |
| | | 24 | | internal FiniteSlabRaySelectionMetadata(bool hasValue, bool parameterIsDepth, int ordinal, |
| | | 25 | | int rootCount, int coefficientCount, int orientation, FixedTriangle triangle, int domainEdgeMask, |
| | | 26 | | bool hasCompactCell, bool isRational, int denominatorShift) |
| | | 27 | | { |
| | 464 | 28 | | HasValue = hasValue; ParameterIsDepth = parameterIsDepth; Ordinal = ordinal; RootCount = rootCount; |
| | 348 | 29 | | CoefficientCount = coefficientCount; Orientation = orientation; Triangle = triangle; |
| | 116 | 30 | | DomainEdgeMask = domainEdgeMask; |
| | 348 | 31 | | HasCompactCell = hasCompactCell; IsRational = isRational; DenominatorShift = denominatorShift; |
| | 116 | 32 | | } |
| | | 33 | | } |