com.jzy3d.surfedit.surface.simple
Class BarycentreOrderingStrategy

java.lang.Object
  extended by com.jzy3d.surfedit.surface.simple.AbstractOrderingStrategy
      extended by com.jzy3d.surfedit.surface.simple.BarycentreOrderingStrategy
All Implemented Interfaces:
java.util.Comparator<org.jzy3d.maths.PolygonArray>

public class BarycentreOrderingStrategy
extends AbstractOrderingStrategy


Constructor Summary
BarycentreOrderingStrategy()
           
 
Method Summary
 int compare(org.jzy3d.maths.PolygonArray p1, org.jzy3d.maths.PolygonArray p2)
          Operation must be: symetric: compare(a,b)=-compare(b,a) transitive: ((compare(x, y)>0) && (compare(y, z)>0)) implies compare(x, z)>0 true if all Drawables and the Camera don't change position!
 
Methods inherited from class com.jzy3d.surfedit.surface.simple.AbstractOrderingStrategy
getCamera, getGl, getGlu, getTransform, setAll, setCamera, setGl, setGlu, setTransform, sort, sort, sort
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

BarycentreOrderingStrategy

public BarycentreOrderingStrategy()
Method Detail

compare

public int compare(org.jzy3d.maths.PolygonArray p1,
                   org.jzy3d.maths.PolygonArray p2)
Operation must be: symetric: compare(a,b)=-compare(b,a) transitive: ((compare(x, y)>0) && (compare(y, z)>0)) implies compare(x, z)>0 true if all Drawables and the Camera don't change position! consistency?: compare(x, y)==0 implies that sgn(compare(x, z))==sgn(compare(y, z))