C# Class Jitter.Collision.CollisionSystemPersistentSAP.BodyPair

Mostrar archivo Open project: tpb3d/TPB3D

Public Methods

Method Description
BodyPair ( IBroadphaseEntity body1, IBroadphaseEntity body2 ) : System

Initializes a new instance of the BodyPair class.

Equals ( object obj ) : bool

Checks if two objects are equal.

GetHashCode ( ) : int

Returns the hashcode of the BodyPair. The hashcode is the same if an BodyPair contains the same bodies.

Private Methods

Method Description
SetBodies ( RigidBody body1, RigidBody body2 ) : void

Don't call this, while the key is used in the arbitermap. It changes the hashcode of this object.

Method Details

BodyPair() public method

Initializes a new instance of the BodyPair class.
public BodyPair ( IBroadphaseEntity body1, IBroadphaseEntity body2 ) : System
body1 IBroadphaseEntity
body2 IBroadphaseEntity
return System

Equals() public method

Checks if two objects are equal.
public Equals ( object obj ) : bool
obj object The object to check against.
return bool

GetHashCode() public method

Returns the hashcode of the BodyPair. The hashcode is the same if an BodyPair contains the same bodies.
public GetHashCode ( ) : int
return int