| | | 1 | | //======================================================================= |
| | | 2 | | // FixedContactLocalPoints.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> |
| | | 11 | | /// Stores one compact local-point pair in a multi-contact relation. |
| | | 12 | | /// </summary> |
| | | 13 | | /// <remarks> |
| | | 14 | | /// The pair reuses the rigid frames, normal, depth, and depth-clamping state |
| | | 15 | | /// carried by the relation's primary <see cref="FixedContactAnchors"/>. |
| | | 16 | | /// </remarks> |
| | | 17 | | public readonly struct FixedContactLocalPoints |
| | | 18 | | { |
| | | 19 | | internal FixedContactLocalPoints( |
| | | 20 | | Vector3d firstLocalPoint, |
| | | 21 | | Vector3d secondLocalPoint) |
| | | 22 | | { |
| | 4061 | 23 | | FirstLocalPoint = firstLocalPoint; |
| | 4061 | 24 | | SecondLocalPoint = secondLocalPoint; |
| | 4061 | 25 | | } |
| | | 26 | | |
| | | 27 | | /// <summary> |
| | | 28 | | /// The point in the primary relation's first rigid frame. |
| | | 29 | | /// </summary> |
| | | 30 | | public Vector3d FirstLocalPoint { get; } |
| | | 31 | | |
| | | 32 | | /// <summary> |
| | | 33 | | /// The point in the primary relation's second rigid frame. |
| | | 34 | | /// </summary> |
| | | 35 | | public Vector3d SecondLocalPoint { get; } |
| | | 36 | | } |