|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmath.geom2d.transform.AbstractAffineTransform2D
math.geom2d.transform.Rotation2D
public class Rotation2D
Rotate a shape around a point with a given angle.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class math.geom2d.transform.AbstractAffineTransform2D |
|---|
AbstractAffineTransform2D.Identity2D |
| Field Summary | |
|---|---|
protected double |
theta
|
protected double |
x0
|
protected double |
y0
|
| Constructor Summary | |
|---|---|
Rotation2D(double theta)
|
|
Rotation2D(double xc,
double yc,
double theta)
|
|
Rotation2D(Point2D center,
double theta)
|
|
| Method Summary | |
|---|---|
AffineTransform2D |
compose(AffineTransform2D transfo)
Returns a new Rotation2D, Translation2D, or GenericAffineTransform2D depending on the parameter transform. |
double[][] |
getAffineMatrix()
return matrix of the transform coefficients. |
double |
getAngle()
|
Point2D |
getCenter()
|
double[] |
getCoefficients()
return coefficients of the transform. |
Rotation2D |
getInverseTransform()
|
LinearRotation2D |
getLinearPart()
|
double |
getScalingFactor()
Returns the scaling factor of the transform. |
Translation2D |
getTranslationPart()
|
boolean |
isDirect()
Check if the transform is direct, i.e. it preserves the orientation of transformed shapes. |
boolean |
isIdentity()
Check if the transform is equivalent to the identity transform. |
boolean |
isMotion()
Check if the transform is a motion, i.e. a compound of translations and rotation. |
void |
setAngle(double theta)
|
void |
setCenter(Point2D point)
|
| Methods inherited from class math.geom2d.transform.AbstractAffineTransform2D |
|---|
createRotation, createRotation, createRotation, createScaling, createScaling, createTranslation, createTranslation, equals, isDirect, isIdentity, isIsometry, isIsometry, isMotion, isSimilarity, isSimilarity, transform, transform, transform |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface math.geom2d.transform.AffineTransform2D |
|---|
isIsometry, isSimilarity |
| Methods inherited from interface math.geom2d.transform.Transform2D |
|---|
transform, transform, transform |
| Field Detail |
|---|
protected double x0
protected double y0
protected double theta
| Constructor Detail |
|---|
public Rotation2D(double theta)
public Rotation2D(Point2D center,
double theta)
public Rotation2D(double xc,
double yc,
double theta)
| Method Detail |
|---|
public void setCenter(Point2D point)
public Point2D getCenter()
public void setAngle(double theta)
public double getAngle()
public boolean isMotion()
AffineTransform2D
isMotion in interface AffineTransform2DisMotion in class AbstractAffineTransform2Dpublic double[] getCoefficients()
AffineTransform2D
getCoefficients in interface AffineTransform2Dpublic double[][] getAffineMatrix()
AffineTransform2D
getAffineMatrix in interface AffineTransform2Dpublic Rotation2D getInverseTransform()
getInverseTransform in interface Bijection2Dpublic boolean isDirect()
AffineTransform2D
isDirect in interface AffineTransform2DisDirect in interface Isometry2DisDirect in class AbstractAffineTransform2Dpublic boolean isIdentity()
AffineTransform2D
isIdentity in interface AffineTransform2DisIdentity in class AbstractAffineTransform2Dpublic double getScalingFactor()
Similarity2D
getScalingFactor in interface Similarity2Dpublic LinearRotation2D getLinearPart()
getLinearPart in interface Similarity2Dpublic Translation2D getTranslationPart()
getTranslationPart in interface Similarity2Dpublic AffineTransform2D compose(AffineTransform2D transfo)
compose in interface AffineTransform2Dcompose in class AbstractAffineTransform2Dtransfo - the transform to compose with
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||