public class Scaling extends Translation
Constructor and Description |
---|
Scaling()
Creates a zeroed out scaling
|
Scaling(double x,
double y)
Creates a scaling at the given x and y scale.
|
Scaling(double x,
double y,
double centerX,
double centerY)
Creates a scaling using the given x and y scale and the given origin.
|
Scaling(Scaling scaling)
Creates a copy of the given scaling.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
double |
getCenterX()
Returns the x-coordinate of the origin of the scaling.
|
double |
getCenterY()
Returns the y-coordinate of the origin of the scaling.
|
void |
setCenterX(double centerX)
Sets the x-coordinate of the origin of the scaling.
|
void |
setCenterY(double centerY)
Sets the y-coordinate of the origin of the scaling.
|
public Scaling()
public Scaling(double x, double y)
x
- the scale on the x axisy
- the scale on the y axispublic Scaling(double x, double y, double centerX, double centerY)
x
- the scale on the x axisy
- the scale on the y axiscenterX
- x-coordinate of the origincenterY
- y-coordinate of the originpublic Scaling(Scaling scaling)
scaling
- the scaling to be copiedpublic boolean equals(Object obj)
equals
in class Translation
public double getCenterX()
public double getCenterY()
public void setCenterX(double centerX)
centerX
- the x-coordinate of the origin of the scalingpublic void setCenterY(double centerY)
centerY
- the y-coordinate of the origin of the scalingCopyright © 2015. All rights reserved.