Dart Documentationbox2dContactID

ContactID class

class ContactID {
 /** The features that intersect to form the contact point */
 final Features features;

 /**
  * Constructs a new ContactID. */
 ContactID() : features = new Features();

 /**
  * Constructs a ContactID that is a copy of the given ContactID.
  */
 ContactID.copy(ContactID other) :
   features = new Features.copy(other.features);

 /**
  * Returns true if this ContactID equals the given ContactID.
  */
 bool operator ==(other) => other.features == features;

 /**
  * Sets this contactID to be equal to the given ContactID.
  */
 void setFrom(ContactID other) { features.setFrom(other.features); }

 /**
  * Returns true if this ContactID equals the given ContactID.
  */
 bool isEqual(ContactID other) => other.features == features;

 /**
  * Zeroes out the data.
  */
 void zero() { features.zero(); }
}

Constructors

new ContactID() #

Constructs a new ContactID.

ContactID() : features = new Features();

new ContactID.copy(ContactID other) #

Constructs a ContactID that is a copy of the given ContactID.

ContactID.copy(ContactID other) :
 features = new Features.copy(other.features);

Properties

final Features features #

The features that intersect to form the contact point

final Features features;

Operators

bool operator ==(other) #

Returns true if this ContactID equals the given ContactID.

bool operator ==(other) => other.features == features;

Methods

bool isEqual(ContactID other) #

Returns true if this ContactID equals the given ContactID.

bool isEqual(ContactID other) => other.features == features;

void setFrom(ContactID other) #

Sets this contactID to be equal to the given ContactID.

void setFrom(ContactID other) { features.setFrom(other.features); }

void zero() #

Zeroes out the data.

void zero() { features.zero(); }