|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectskyview.geometry.Transformer
skyview.geometry.Scaler
public class Scaler
This class does 2-D scalings, rotations and linear transformations.
| Constructor Summary | |
|---|---|
Scaler(double x0,
double y0,
double a00,
double a01,
double a10,
double a11)
Create a scaler where y0 = x0 + a00*x0 + a01*x1, y1 = x0+a10*x0+a11*x1. |
|
| Method Summary | |
|---|---|
Scaler |
add(Scaler trans)
Add a second affine transformation to this one and return the composite transformation. |
void |
dump(java.io.PrintStream out)
Show the scaler. |
java.lang.String |
getDescription()
What is a descrition for this component? |
protected int |
getInputDimension()
What is the dimensionality of the input to a Scaler |
java.lang.String |
getName()
What is a name for this component? |
protected int |
getOutputDimension()
What is the dimensionality of the output of a Scaler |
double[] |
getParams()
|
void |
interchangeAxes()
Interchange the X and Y axes |
Scaler |
inverse()
Return the inverse transformation. |
boolean |
isInverse(Transformer trans)
Is this an inverse of the current scaler? |
double |
scale()
What is the scale of this transformation? This is defined as the ratio of the lengths between a unit transformation on input. |
void |
transform(double[] x,
double[] y)
Scale a single point where the user supplies the output. |
| Methods inherited from class skyview.geometry.Transformer |
|---|
transform, transform |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Scaler(double x0,
double y0,
double a00,
double a01,
double a10,
double a11)
x0 - The X offsety0 - The Y offseta00 - Coefficient of the transformation matrix.a01 - Coefficient of the transformation matrix.a10 - Coefficient of the transformation matrix.a11 - Coefficient of the transformation matrix.| Method Detail |
|---|
public double[] getParams()
protected int getOutputDimension()
getOutputDimension in class Transformerprotected int getInputDimension()
getInputDimension in class Transformerpublic java.lang.String getName()
getName in interface Componentpublic java.lang.String getDescription()
getDescription in interface Component
public void transform(double[] x,
double[] y)
transform in class Transformerx - The input point (should be double[2])y - The output point (should be double[2])
public Scaler inverse()
throws TransformationException
inverse in class TransformerTransformationException - if the forward transformation matrix is singular.public Scaler add(Scaler trans)
trans - A second transformation which is applied after the transformation
described in 'this'.
public boolean isInverse(Transformer trans)
isInverse in class Transformerpublic double scale()
public void interchangeAxes()
public void dump(java.io.PrintStream out)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||