public class Transform
extends java.lang.Object
Constructor and Description |
---|
Transform() |
Modifier and Type | Method and Description |
---|---|
Point |
getTransformed(Point p)
Returns a new transformed Point of the input Point based on the
transformation values set.
|
void |
setRotation(double angle)
Sets the rotation angle.
|
void |
setScale(double scale)
Sets the value for the amount of scaling to be done along both axes.
|
void |
setScale(double x,
double y)
Sets the value for the amount of scaling to be done along X and Y axes
individually.
|
void |
setTranslation(double x,
double y)
Sets the translation amounts for both axes.
|
public void setScale(double scale)
scale
- Scale factorpublic void setScale(double x, double y)
x
- Amount of scaling on X axisy
- Amount of scaling on Y axispublic void setRotation(double angle)
angle
- Angle of rotationpublic void setTranslation(double x, double y)
x
- Amount of shift on X axisy
- Amount of shift on Y axisCopyright (c) IBM Corp. and others 2000, 2011. All Rights Reserved.