maspack.collision
Class IntersectionContour

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.ArrayList<MeshIntersectionPoint>
              extended by maspack.collision.IntersectionContour
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<MeshIntersectionPoint>, java.util.Collection<MeshIntersectionPoint>, java.util.List<MeshIntersectionPoint>, java.util.RandomAccess

public class IntersectionContour
extends java.util.ArrayList<MeshIntersectionPoint>

See Also:
Serialized Form

Constructor Summary
IntersectionContour()
           
IntersectionContour(java.util.Collection<? extends MeshIntersectionPoint> c)
           
IntersectionContour(int initialCapacity)
           
 
Method Summary
 double getArea()
          Return the area of this (approximately planar) contour.
 boolean isOpen()
           
 void reverse()
          Reverse the order of elements in this contour in place
 
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, set, size, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList
 

Constructor Detail

IntersectionContour

public IntersectionContour()

IntersectionContour

public IntersectionContour(int initialCapacity)

IntersectionContour

public IntersectionContour(java.util.Collection<? extends MeshIntersectionPoint> c)
Method Detail

reverse

public void reverse()
Reverse the order of elements in this contour in place


getArea

public double getArea()
Return the area of this (approximately planar) contour.

Returns:
area

isOpen

public boolean isOpen()