@@ -24,7 +24,7 @@ public class B2ShapeTest
2424 public void ShapeMassTest ( )
2525 {
2626 {
27- B2MassData md = b2ComputeCircleMass ( ref circle , 1.0f ) ;
27+ B2MassData md = b2ComputeCircleMass ( circle , 1.0f ) ;
2828 Assert . That ( md . mass - B2_PI , Is . LessThan ( FLT_EPSILON ) ) ;
2929 Assert . That ( md . center . X , Is . EqualTo ( 1.0f ) ) ;
3030 Assert . That ( md . center . Y , Is . EqualTo ( 0.0f ) ) ;
@@ -35,11 +35,11 @@ public void ShapeMassTest()
3535 float radius = capsule . radius ;
3636 float length = b2Distance ( capsule . center1 , capsule . center2 ) ;
3737
38- B2MassData md = b2ComputeCapsuleMass ( ref capsule , 1.0f ) ;
38+ B2MassData md = b2ComputeCapsuleMass ( capsule , 1.0f ) ;
3939
4040 // Box that full contains capsule
4141 B2Polygon r = b2MakeBox ( radius , radius + 0.5f * length ) ;
42- B2MassData mdr = b2ComputePolygonMass ( ref r , 1.0f ) ;
42+ B2MassData mdr = b2ComputePolygonMass ( r , 1.0f ) ;
4343
4444 // Approximate capsule using convex hull
4545 B2Vec2 [ ] points = new B2Vec2 [ 2 * N ] ;
@@ -81,23 +81,23 @@ public void ShapeMassTest()
8181 public void ShapeAABBTest ( )
8282 {
8383 {
84- B2AABB b = b2ComputeCircleAABB ( ref circle , b2Transform_identity ) ;
84+ B2AABB b = b2ComputeCircleAABB ( circle , b2Transform_identity ) ;
8585 Assert . That ( b . lowerBound . X , Is . LessThan ( FLT_EPSILON ) ) ;
8686 Assert . That ( b . lowerBound . Y + 1.0f , Is . LessThan ( FLT_EPSILON ) ) ;
8787 Assert . That ( b . upperBound . X - 2.0f , Is . LessThan ( FLT_EPSILON ) ) ;
8888 Assert . That ( b . upperBound . Y - 1.0f , Is . LessThan ( FLT_EPSILON ) ) ;
8989 }
9090
9191 {
92- B2AABB b = b2ComputePolygonAABB ( ref box , b2Transform_identity ) ;
92+ B2AABB b = b2ComputePolygonAABB ( box , b2Transform_identity ) ;
9393 Assert . That ( b . lowerBound . X + 1.0f , Is . LessThan ( FLT_EPSILON ) ) ;
9494 Assert . That ( b . lowerBound . Y + 1.0f , Is . LessThan ( FLT_EPSILON ) ) ;
9595 Assert . That ( b . upperBound . X - 1.0f , Is . LessThan ( FLT_EPSILON ) ) ;
9696 Assert . That ( b . upperBound . Y - 1.0f , Is . LessThan ( FLT_EPSILON ) ) ;
9797 }
9898
9999 {
100- B2AABB b = b2ComputeSegmentAABB ( ref segment , b2Transform_identity ) ;
100+ B2AABB b = b2ComputeSegmentAABB ( segment , b2Transform_identity ) ;
101101 Assert . That ( b . lowerBound . X , Is . LessThan ( FLT_EPSILON ) ) ;
102102 Assert . That ( b . lowerBound . Y + 1.0f , Is . LessThan ( FLT_EPSILON ) ) ;
103103 Assert . That ( b . upperBound . X , Is . LessThan ( FLT_EPSILON ) ) ;
@@ -113,9 +113,9 @@ public void PointInShapeTest()
113113
114114 {
115115 bool hit ;
116- hit = b2PointInCircle ( ref circle , p1 ) ;
116+ hit = b2PointInCircle ( circle , p1 ) ;
117117 Assert . That ( hit , Is . EqualTo ( true ) ) ;
118- hit = b2PointInCircle ( ref circle , p2 ) ;
118+ hit = b2PointInCircle ( circle , p2 ) ;
119119 Assert . That ( hit , Is . EqualTo ( false ) ) ;
120120 }
121121
@@ -134,23 +134,23 @@ public void RayCastShapeTest()
134134 B2RayCastInput input = new B2RayCastInput ( new B2Vec2 ( - 4.0f , 0.0f ) , new B2Vec2 ( 8.0f , 0.0f ) , 1.0f ) ;
135135
136136 {
137- B2CastOutput output = b2RayCastCircle ( circle , ref input ) ;
137+ B2CastOutput output = b2RayCastCircle ( circle , input ) ;
138138 Assert . That ( output . hit ) ;
139139 Assert . That ( output . normal . X + 1.0f , Is . LessThan ( FLT_EPSILON ) ) ;
140140 Assert . That ( output . normal . Y , Is . LessThan ( FLT_EPSILON ) ) ;
141141 Assert . That ( output . fraction - 0.5f , Is . LessThan ( FLT_EPSILON ) ) ;
142142 }
143143
144144 {
145- B2CastOutput output = b2RayCastPolygon ( ref box , ref input ) ;
145+ B2CastOutput output = b2RayCastPolygon ( box , input ) ;
146146 Assert . That ( output . hit ) ;
147147 Assert . That ( output . normal . X + 1.0f , Is . LessThan ( FLT_EPSILON ) ) ;
148148 Assert . That ( output . normal . Y , Is . LessThan ( FLT_EPSILON ) ) ;
149149 Assert . That ( output . fraction - 3.0f / 8.0f , Is . LessThan ( FLT_EPSILON ) ) ;
150150 }
151151
152152 {
153- B2CastOutput output = b2RayCastSegment ( ref segment , ref input , true ) ;
153+ B2CastOutput output = b2RayCastSegment ( segment , input , true ) ;
154154 Assert . That ( output . hit ) ;
155155 Assert . That ( output . normal . X + 1.0f , Is . LessThan ( FLT_EPSILON ) ) ;
156156 Assert . That ( output . normal . Y , Is . LessThan ( FLT_EPSILON ) ) ;
0 commit comments