Class CAaSphere
An axis-aligned sphere: position and radius.
public class CAaSphere : IDisposable
- Inheritance
-
CAaSphere
- Implements
- Inherited Members
Constructors
CAaSphere()
public CAaSphere()
CAaSphere(C3Vector, float)
public CAaSphere(C3Vector position, float radius)
Parameters
CAaSphere(CAaSphere)
Copy-construct: a deep copy of other (the C++ copy constructor).
public CAaSphere(CAaSphere other)
Parameters
otherCAaSphere
Properties
Position
The center position.
public C3Vector Position { get; set; }
Property Value
Radius
The 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 ==(CAaSphere?, CAaSphere?)
public static bool operator ==(CAaSphere? l, CAaSphere? r)
Parameters
Returns
operator !=(CAaSphere?, CAaSphere?)
public static bool operator !=(CAaSphere? l, CAaSphere? r)