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.

Constructor Index

 o Transform(double, double, ColPoint, Color)

Method Index

 o apply(ColPoint)
Apply the transformation to point.
 o getColor()
 o getComp()
 o getPos()
 o getRot()
 o setColor(Color)
 o setComp(double)
Set the compression value of the transformation.
 o setPos(ColPoint)
Set the "position" (fixed point) of the transformation.
 o setRot(double)
Set the rotation value of the transformation.

Constructors

 o Transform
  public Transform(double rotation,
                   double compression,
                   ColPoint position,
                   Color color)

Methods

 o setRot
  public void setRot(double rotation)
Set the rotation value of the transformation.
Parameters:
rotation - Rotation value, in degrees.
 o getRot
  public double getRot()
Returns:
The rotation value in degrees.
 o setComp
  public void setComp(double compression)
Set the compression value of the transformation.
 o getComp
  public double getComp()
Returns:
The compression value for the transformation.
 o setPos
  public void setPos(ColPoint position)
Set the "position" (fixed point) of the transformation.
See Also:
ColPoint
 o getPos
  public ColPoint getPos()
Returns:
The position of the transformation.
 o setColor
  public void setColor(Color color)
 o getColor
  public Color getColor()
Returns:
The color of the transform.
 o 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