org.jzy3d.plot3d.rendering.ordering
Class BarycentreOrderingStrategy
java.lang.Object
org.jzy3d.plot3d.rendering.ordering.AbstractOrderingStrategy
org.jzy3d.plot3d.rendering.ordering.BarycentreOrderingStrategy
- All Implemented Interfaces:
- Comparator<AbstractDrawable>
public class BarycentreOrderingStrategy
- extends AbstractOrderingStrategy
The BarycentreOrderingStrategy
compare two AbstractDrawable
s by computing
their respective distances to the Camera
, which must be referenced prior to any
comparison.
- Author:
- Martin Pernollet
Methods inherited from class org.jzy3d.plot3d.rendering.ordering.AbstractOrderingStrategy |
comparison, getCamera, getGl, getGlu, getTransform, setAll, setCamera, setGl, setGlu, setTransform, sort |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BarycentreOrderingStrategy
public BarycentreOrderingStrategy()
compare
public int compare(AbstractDrawable d1,
AbstractDrawable d2)