Class M2Bounds
A bounding volume: axis-aligned extent plus sphere radius.
public class M2Bounds : IDisposable
- Inheritance
-
M2Bounds
- Implements
- Inherited Members
Constructors
M2Bounds()
public M2Bounds()
M2Bounds(CAaBox, float)
public M2Bounds(CAaBox extent, float radius)
Parameters
M2Bounds(M2Bounds)
Copy-construct: a deep copy of other (the C++ copy constructor).
public M2Bounds(M2Bounds other)
Parameters
otherM2Bounds
Properties
Extent
The axis-aligned extent.
public CAaBox Extent { get; set; }
Property Value
Radius
The bounding-sphere radius.
public float Radius { get; set; }
Property Value
Methods
Dispose()
Release the native object now. Optional: the finalizer releases it on
collection anyway - dispose (or using) when you want native memory back
promptly.
public virtual void Dispose()
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
objobjectThe object to compare with the current object.
Returns
GetHashCode()
Reference-identity hash (the C++ type has no hash to mirror).
public override int GetHashCode()
Returns
Operators
operator ==(M2Bounds?, M2Bounds?)
public static bool operator ==(M2Bounds? l, M2Bounds? r)
Parameters
Returns
operator !=(M2Bounds?, M2Bounds?)
public static bool operator !=(M2Bounds? l, M2Bounds? r)