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:
Comparator<org.jzy3d.maths.PolygonArray>

public class BarycentreOrderingStrategy
extends AbstractOrderingStrategy


Field Summary
 
Fields inherited from class com.jzy3d.surfedit.surface.simple.AbstractOrderingStrategy
camera, gl, glu, transform
 
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!
protected  double getDistance(org.jzy3d.maths.PolygonArray p, org.jzy3d.plot3d.rendering.view.Camera c)
           
 
Methods inherited from class com.jzy3d.surfedit.surface.simple.AbstractOrderingStrategy
comparison, getCamera, getGl, getGlu, getTransform, setAll, setCamera, setGl, setGlu, setTransform, sort, sort, sort
 
Methods inherited from class java.lang.Object
clone, equals, finalize, 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))


getDistance

protected double getDistance(org.jzy3d.maths.PolygonArray p,
                             org.jzy3d.plot3d.rendering.view.Camera c)


Copyright © 2014. All rights reserved.