Commit f84d5f2
committed
feat: Optimize B2MathFunction by passing structs as readonly references
This commit improves performance in `B2MathFunction` by passing struct parameters (`B2Vec2`, `B2Rot`, `B2Transform`, `B2Mat22`, `B2AABB`, `B2Plane`) as readonly references using the `in` modifier. This avoids unnecessary copying of these structs when calling the math functions, leading to better performance.1 parent 6a77db4 commit f84d5f2
1 file changed
+58
-58
lines changed
0 commit comments