Package popinjay
Class AffineTransform
- java.lang.Object
-
- popinjay.AffineTransform
-
public class AffineTransform extends java.lang.ObjectA mutable affine transformation on 2D points.
-
-
Constructor Summary
Constructors Constructor Description AffineTransform()Create the identity transformation.AffineTransform(int m00, int m01, int m10, int m11)Create a linear transformation.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Pointapply(Point p)Return a point that is the transformation of p.voidcompose(AffineTransform t)Effect: compose the current transformation with the transformation t.voidtranslate(int dx, int dy)Effect: Compose the current transformation with a translation.
-
-
-
Method Detail
-
translate
public void translate(int dx, int dy)Effect: Compose the current transformation with a translation.
-
compose
public void compose(AffineTransform t)
Effect: compose the current transformation with the transformation t.
-
-