Struct StaticHandle
- Namespace
- BepuPhysics
- Assembly
- BepuPhysics.dll
Unique identifier of a static belonging to a simulation's Statics collection.
public struct StaticHandle : IEquatable<StaticHandle>, IEqualityComparerRef<StaticHandle>
- Implements
-
IEqualityComparerRef<StaticHandle>
- Inherited Members
Constructors
StaticHandle(int)
public StaticHandle(int value)
Parameters
value
int
Fields
Value
Index in the handle-to-memory mapping table used to look up the current memory location of the body. This value will not (and must not) change during the body's lifespan, but the memory that the table points to could change.
public int Value
Field Value
Methods
Equals(StaticHandle)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(StaticHandle other)
Parameters
other
StaticHandleAn object to compare with this object.
Returns
Equals(ref StaticHandle, ref StaticHandle)
public bool Equals(ref StaticHandle a, ref StaticHandle b)
Parameters
Returns
Equals(object)
Indicates whether this instance and a specified object are equal.
public override bool Equals(object obj)
Parameters
obj
objectThe object to compare with the current instance.
Returns
- bool
true if
obj
and this instance are the same type and represent the same value; otherwise, false.
GetHashCode()
Returns the hash code for this instance.
public override int GetHashCode()
Returns
- int
A 32-bit signed integer that is the hash code for this instance.
Hash(ref StaticHandle)
public int Hash(ref StaticHandle item)
Parameters
item
StaticHandle
Returns
ToString()
Returns the fully qualified type name of this instance.
public override string ToString()
Returns
- string
The fully qualified type name.
Operators
operator ==(StaticHandle, StaticHandle)
public static bool operator ==(StaticHandle a, StaticHandle b)
Parameters
Returns
operator !=(StaticHandle, StaticHandle)
public static bool operator !=(StaticHandle a, StaticHandle b)