org.jbox2d.collision
Class Manifold

java.lang.Object
  extended by org.jbox2d.collision.Manifold

public class Manifold
extends Object

A manifold for two touching convex shapes.


Field Summary
 Vec2 normal
          The shared unit normal vector.
 int pointCount
          The number of manifold points.
 ManifoldPoint[] points
          The points of contact.
 
Constructor Summary
Manifold()
          creates a manifold with 0 points, with it's points array full of instantiated ManifoldPoints.
Manifold(Manifold other)
          Creates this manifold as a copy of the other
 
Method Summary
 void set(Manifold cp)
          copies this manifold from the given one
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

points

public final ManifoldPoint[] points
The points of contact.


normal

public final Vec2 normal
The shared unit normal vector.


pointCount

public int pointCount
The number of manifold points.

Constructor Detail

Manifold

public Manifold()
creates a manifold with 0 points, with it's points array full of instantiated ManifoldPoints.


Manifold

public Manifold(Manifold other)
Creates this manifold as a copy of the other

Parameters:
other -
Method Detail

set

public void set(Manifold cp)
copies this manifold from the given one

Parameters:
cp - manifold to copy from