Skip to content

Commit 61b6b61

Browse files
author
David Kline (ANALOG)
committed
rename BoundingBox to Bounds
1 parent f505ce6 commit 61b6b61

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

Assets/MixedRealityToolkit-SDK/Features/SpatialAwareness/System/MixedRealitySpatialAwarenessPlanarSurfaceDescription.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ namespace Microsoft.MixedReality.Toolkit.SDK.SpatialAwarenessSystem
1313
public class MixedRealitySpatialAwarenessPlanarSurfaceDescription : MixedRealitySpatialAwarenessBaseDescription, IMixedRealitySpatialAwarenessPlanarSurfaceDescription
1414
{
1515
/// <inheritdoc />
16-
public Bounds BoundingBox { get; private set; }
16+
public Bounds Bounds { get; private set; }
1717

1818
/// <inheritdoc />
1919
public Vector3 Normal { get; private set; }
@@ -23,11 +23,11 @@ public class MixedRealitySpatialAwarenessPlanarSurfaceDescription : MixedReality
2323

2424
public MixedRealitySpatialAwarenessPlanarSurfaceDescription(
2525
Vector3 position,
26-
Bounds boundingBox,
26+
Bounds bounds,
2727
Vector3 normal,
2828
SpatialAwarenessSurfaceTypes surfaceType) : base(position)
2929
{
30-
BoundingBox = boundingBox;
30+
Bounds = bounds;
3131
Normal = normal;
3232
SurfaceType = surfaceType;
3333
}
@@ -36,7 +36,7 @@ public MixedRealitySpatialAwarenessPlanarSurfaceDescription(
3636

3737
public override string ToString()
3838
{
39-
return $"{base.ToString()}:{SurfaceType.ToString()}:Bounds({BoundingBox.min},{BoundingBox.max}):Normal({Normal.x},{Normal.y},{Normal.z}";
39+
return $"{base.ToString()}:{SurfaceType.ToString()}:Bounds({Bounds.min},{Bounds.max}):Normal({Normal.x},{Normal.y},{Normal.z}";
4040
}
4141

4242
public static bool Equals(IMixedRealitySpatialAwarenessPlanarSurfaceDescription left, IMixedRealitySpatialAwarenessPlanarSurfaceDescription right)
@@ -63,7 +63,7 @@ private bool Equals(IMixedRealitySpatialAwarenessPlanarSurfaceDescription other)
6363
if (other == null) { return false; }
6464
if (!base.Equals(other)) { return false; }
6565

66-
if (!BoundingBox.Equals(other.BoundingBox)) { return false; }
66+
if (!Bounds.Equals(other.Bounds)) { return false; }
6767
if (!Normal.Equals(other.Normal)) { return false; }
6868
if (SurfaceType != other.SurfaceType) { return false; }
6969

@@ -77,7 +77,7 @@ int IEqualityComparer.GetHashCode(object obj)
7777

7878
public override int GetHashCode()
7979
{
80-
string s = $"Position({Position}):{SurfaceType.ToString()}:Bounds({BoundingBox.min},{BoundingBox.max}):Normal({Normal.x},{Normal.y},{Normal.z}";
80+
string s = $"Position({Position}):{SurfaceType.ToString()}:Bounds({Bounds.min},{Bounds.max}):Normal({Normal.x},{Normal.y},{Normal.z}";
8181
return s.GetHashCode();
8282
}
8383

Assets/MixedRealityToolkit/_Core/Definitions/SpatialAwareness/IMixedRealitySpatialAwarenessPlanarSurfaceDescription.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public interface IMixedRealitySpatialAwarenessPlanarSurfaceDescription : IMixedR
1313
/// <summary>
1414
/// The axis aligned bounding box that contains the surface being described.
1515
/// </summary>
16-
Bounds BoundingBox { get; }
16+
Bounds Bounds { get; }
1717

1818
/// <summary>
1919
/// The normal of the described surface.

0 commit comments

Comments
 (0)