Skip to content

Conversation

@ikpil
Copy link
Owner

@ikpil ikpil commented Dec 27, 2025

No description provided.

…ifier

- Updated `b2TimeOfImpact` to accept `B2TOIInput` by reference using the `in` keyword instead of `ref`.
- Updated `b2MakeSeparationFunction` to accept `B2ShapeProxy` parameters by reference using the `in` keyword.
- Adjusted call sites in `B2Solvers.cs`, `TimeOfImpact.cs`, and `B2DistanceTest.cs` to match the signature changes.
- These changes improve API consistency and avoid unnecessary copying of large structs.
- Updated `b2MakeSeparationFunction` to accept `B2Sweep` parameters using the `in` keyword instead of `ref`.
- Updated `b2TimeOfImpact` to use `ref readonly` for `B2Sweep` local variables to avoid copying.
- This change reduces struct copying overhead for `B2Sweep` in TOI calculations.
@ikpil ikpil merged commit 656754c into main Dec 27, 2025
10 checks passed
@ikpil ikpil deleted the pr/refactor--b2TimeOfImpact-and-b2MakeSeparationFunction-to-use-'in'-modifier branch December 27, 2025 06:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants