| | | 1 | | //======================================================================= |
| | | 2 | | // CenteredCylinderContactFeature.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 | | namespace FixedMathSharp.Geometry; |
| | | 9 | | |
| | | 10 | | /// <summary>Exact parallel box-face/cylinder-cap ownership for manifold clipping.</summary> |
| | | 11 | | internal readonly struct CenteredCylinderContactFeature |
| | | 12 | | { |
| | | 13 | | internal CenteredCylinderContactFeature(int boxFaceAxis, int boxFaceSign, int cylinderCapSign) |
| | | 14 | | { |
| | 1021 | 15 | | BoxFaceAxis = boxFaceAxis; |
| | 1021 | 16 | | BoxFaceSign = boxFaceSign; |
| | 1021 | 17 | | CylinderCapSign = cylinderCapSign; |
| | 1021 | 18 | | IsCapFace = true; |
| | 1021 | 19 | | } |
| | | 20 | | |
| | | 21 | | internal int BoxFaceAxis { get; } |
| | | 22 | | internal int BoxFaceSign { get; } |
| | | 23 | | internal int CylinderCapSign { get; } |
| | | 24 | | internal bool IsCapFace { get; } |
| | | 25 | | } |