Class edu.umn.geom.IFSoft.Transform
All Packages Class Hierarchy This Package Previous Next Index
Class edu.umn.geom.IFSoft.Transform
java.lang.Object
|
+----edu.umn.geom.IFSoft.Transform
- public class Transform
- extends Object
This class contains and applies the affine transformations used in the
IFSs in Fractalina. There are methods to get and set parameters, and apply the
transformation to a given point.
-
Transform(double, double, ColPoint, Color)
-
-
apply(ColPoint)
- Apply the transformation to point.
-
getColor()
-
-
getComp()
-
-
getPos()
-
-
getRot()
-
-
setColor(Color)
-
-
setComp(double)
- Set the compression value of the transformation.
-
setPos(ColPoint)
- Set the "position" (fixed point) of the transformation.
-
setRot(double)
- Set the rotation value of the transformation.
Transform
public Transform(double rotation,
double compression,
ColPoint position,
Color color)
setRot
public void setRot(double rotation)
- Set the rotation value of the transformation.
- Parameters:
- rotation - Rotation value, in degrees.
getRot
public double getRot()
- Returns:
- The rotation value in degrees.
setComp
public void setComp(double compression)
- Set the compression value of the transformation.
getComp
public double getComp()
- Returns:
- The compression value for the transformation.
setPos
public void setPos(ColPoint position)
- Set the "position" (fixed point) of the transformation.
- See Also:
- ColPoint
getPos
public ColPoint getPos()
- Returns:
- The position of the transformation.
setColor
public void setColor(Color color)
getColor
public Color getColor()
- Returns:
- The color of the transform.
apply
public ColPoint apply(ColPoint point)
- Apply the transformation to point.
- Parameters:
- point - The point to which to apply the transformation.
- Returns:
- The transformed point.
All Packages Class Hierarchy This Package Previous Next Index