Code style tweaks

This commit is contained in:
Wojtek Figat
2021-10-11 14:39:46 +02:00
parent 6dc40d0c93
commit 8610db2e63

View File

@@ -189,20 +189,13 @@ namespace FlaxEngine
{ {
switch (index) switch (index)
{ {
case 0: case 0: return pLeft;
return pLeft; case 1: return pRight;
case 1: case 2: return pTop;
return pRight; case 3: return pBottom;
case 2: case 4: return pNear;
return pTop; case 5: return pFar;
case 3: default: return new Plane();
return pBottom;
case 4:
return pNear;
case 5:
return pFar;
default:
return new Plane();
} }
} }
@@ -398,8 +391,7 @@ namespace FlaxEngine
} }
switch (planeResult) switch (planeResult)
{ {
case PlaneIntersectionType.Back: case PlaneIntersectionType.Back: return ContainmentType.Disjoint;
return ContainmentType.Disjoint;
case PlaneIntersectionType.Intersecting: case PlaneIntersectionType.Intersecting:
result = PlaneIntersectionType.Intersecting; result = PlaneIntersectionType.Intersecting;
break; break;
@@ -407,10 +399,8 @@ namespace FlaxEngine
} }
switch (result) switch (result)
{ {
case PlaneIntersectionType.Intersecting: case PlaneIntersectionType.Intersecting: return ContainmentType.Intersects;
return ContainmentType.Intersects; default: return ContainmentType.Contains;
default:
return ContainmentType.Contains;
} }
} }
@@ -565,8 +555,7 @@ namespace FlaxEngine
} }
switch (planeResult) switch (planeResult)
{ {
case PlaneIntersectionType.Back: case PlaneIntersectionType.Back: return ContainmentType.Disjoint;
return ContainmentType.Disjoint;
case PlaneIntersectionType.Intersecting: case PlaneIntersectionType.Intersecting:
result = PlaneIntersectionType.Intersecting; result = PlaneIntersectionType.Intersecting;
break; break;
@@ -574,10 +563,8 @@ namespace FlaxEngine
} }
switch (result) switch (result)
{ {
case PlaneIntersectionType.Intersecting: case PlaneIntersectionType.Intersecting: return ContainmentType.Intersects;
return ContainmentType.Intersects; default: return ContainmentType.Contains;
default:
return ContainmentType.Contains;
} }
} }