Struct SyncBoundingBox
This struct specifies information about a bounding box.
Inherited Members
Namespace: Unity.Reflect.Model
Syntax
public struct SyncBoundingBox
Constructors
SyncBoundingBox(float3, float3)
Creates a bounding box from its min and max values.
Declaration
public SyncBoundingBox(float3 min, float3 max)
Parameters
Type | Name | Description |
---|---|---|
float3 | min | The min value of the bounding box |
float3 | max | The max value of the bounding box |
Properties
initialized
Whether the bounding box includes at least one point.
Declaration
public bool initialized { get; }
Property Value
Type | Description |
---|---|
Boolean |
Max
The max value of the bounding box.
Declaration
public float3 Max { get; }
Property Value
Type | Description |
---|---|
float3 |
Min
The min value of the bounding box.
Declaration
public float3 Min { get; }
Property Value
Type | Description |
---|---|
float3 |
Methods
Encapsulate(float3)
Encapsulates a point in the bounding box.
Declaration
public void Encapsulate(float3 pt)
Parameters
Type | Name | Description |
---|---|---|
float3 | pt | The point to encapsulate in the bounding box |
Encapsulate(SyncBoundingBox)
Encapsulate another bounding box in the current bounding box.
Declaration
public void Encapsulate(SyncBoundingBox bbox)
Parameters
Type | Name | Description |
---|---|---|
SyncBoundingBox | bbox | The other bounding box to encapsulate in the current one |
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
Object | obj |
Returns
Type | Description |
---|---|
Boolean |
Overrides
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 |
Overrides
Transform(SyncTransform)
Applies a transform to the bounding box.
Declaration
public SyncBoundingBox Transform(SyncTransform transform)
Parameters
Type | Name | Description |
---|---|---|
SyncTransform | transform | The transform to apply to the bounding box |
Returns
Type | Description |
---|---|
SyncBoundingBox | The result of the transform operation. |