| | | 1 | | //======================================================================= |
| | | 2 | | // CapsulePlaneRayValueMetadata.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 | | using System.Runtime.CompilerServices; |
| | | 10 | | |
| | | 11 | | namespace FixedMathSharp.Geometry; |
| | | 12 | | |
| | | 13 | | /// <summary>Copied metadata for a borrowed positive capsule boundary-ray value.</summary> |
| | | 14 | | internal readonly struct CapsulePlaneRayValueMetadata |
| | | 15 | | { |
| | | 16 | | internal readonly int ValueShift, Ordinal, RootCount, PolynomialCount, DenominatorShift; |
| | | 17 | | internal readonly bool IsRational, HasCompactCell, HasValue; |
| | | 18 | | |
| | | 19 | | internal CapsulePlaneRayValueMetadata(int valueShift, int ordinal, int rootCount, int polynomialCount, |
| | | 20 | | int denominatorShift, bool rational, bool compact) |
| | | 21 | | { |
| | 1480 | 22 | | ValueShift = valueShift; Ordinal = ordinal; RootCount = rootCount; PolynomialCount = polynomialCount; |
| | 1480 | 23 | | DenominatorShift = denominatorShift; IsRational = rational; HasCompactCell = compact; HasValue = true; |
| | 370 | 24 | | } |
| | | 25 | | } |