org.math.plot.render
Class Projection3D

java.lang.Object
  extended by org.math.plot.render.Projection
      extended by org.math.plot.render.Projection3D

public class Projection3D
extends Projection

BSD License

Author:
Yann RICHET

Field Summary
protected  double phi
           
protected  double theta
           
 
Fields inherited from class org.math.plot.render.Projection
baseScreenCoords, borderCoeff, DEFAULT_BORDER, draw
 
Constructor Summary
Projection3D(AWTDrawer _draw)
           
 
Method Summary
protected  double[] baseCoordsScreenProjectionRatio(double[] xyz)
           
private  double cos(double x)
           
 void rotate(int[] screenTranslation, int[] dimension)
           
 void setView(double _theta, double _phi)
           
private  double sin(double x)
           
 
Methods inherited from class org.math.plot.render.Projection
dilate, initBaseCoordsProjection, screenProjection, screenProjectionBaseRatio, translate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

theta

protected double theta

phi

protected double phi
Constructor Detail

Projection3D

public Projection3D(AWTDrawer _draw)
Method Detail

baseCoordsScreenProjectionRatio

protected double[] baseCoordsScreenProjectionRatio(double[] xyz)
Specified by:
baseCoordsScreenProjectionRatio in class Projection

cos

private double cos(double x)

sin

private double sin(double x)

setView

public void setView(double _theta,
                    double _phi)

rotate

public void rotate(int[] screenTranslation,
                   int[] dimension)