Class ContactID

java.lang.Object
org.jbox2d.collision.ContactID
All Implemented Interfaces:
java.lang.Comparable<ContactID>

public class ContactID extends java.lang.Object implements java.lang.Comparable<ContactID>
Contact ids to facilitate warm starting. Note: the ContactFeatures class is just embedded in here
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    byte
     
    byte
     
    byte
     
    byte
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
     
    void
     
    int
     
    boolean
     
    void
     
    void
    zeros out the data

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • indexA

      public byte indexA
    • indexB

      public byte indexB
    • typeA

      public byte typeA
    • typeB

      public byte typeB
  • Constructor Details

    • ContactID

      public ContactID()
    • ContactID

      public ContactID(ContactID c)
  • Method Details

    • getKey

      public int getKey()
    • isEqual

      public boolean isEqual(ContactID cid)
    • set

      public void set(ContactID c)
    • flip

      public void flip()
    • zero

      public void zero()
      zeros out the data
    • compareTo

      public int compareTo(ContactID o)
      Specified by:
      compareTo in interface java.lang.Comparable<ContactID>