math.geom2d.transform
Class AbstractAffineTransform2D.Identity2D

java.lang.Object
  extended by math.geom2d.transform.AbstractAffineTransform2D
      extended by math.geom2d.transform.GenericAffineTransform2D
          extended by math.geom2d.transform.AbstractAffineTransform2D.Identity2D
All Implemented Interfaces:
AffineTransform2D, Bijection2D, Isometry2D, LinearTransform2D, Motion2D, Similarity2D, Transform2D
Enclosing class:
AbstractAffineTransform2D

public static final class AbstractAffineTransform2D.Identity2D
extends GenericAffineTransform2D
implements LinearTransform2D, Motion2D


Nested Class Summary
 
Nested classes/interfaces inherited from class math.geom2d.transform.AbstractAffineTransform2D
AbstractAffineTransform2D.Identity2D
 
Field Summary
 
Fields inherited from class math.geom2d.transform.GenericAffineTransform2D
m00, m01, m02, m10, m11, m12
 
Constructor Summary
AbstractAffineTransform2D.Identity2D()
           
 
Method Summary
 AbstractAffineTransform2D.Identity2D getInverseTransform()
           
 LinearTransform2D 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 isIsometry()
          Check if the transform is an isometry, i.e. a compound of translation, rotation and reflection.
 boolean isMotion()
          Check if the transform is a motion, i.e. a compound of translations and rotation.
 boolean isSimilarity()
           
 
Methods inherited from class math.geom2d.transform.GenericAffineTransform2D
compose, getAffineMatrix, getCoefficients, preConcatenate, setToIdentity, setTransform, setTransform, transform, transform
 
Methods inherited from class math.geom2d.transform.AbstractAffineTransform2D
createRotation, createRotation, createRotation, createScaling, createScaling, createTranslation, createTranslation, equals, isDirect, isIdentity, isIsometry, isMotion, isSimilarity, 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
compose, getAffineMatrix, getCoefficients
 
Methods inherited from interface math.geom2d.transform.Transform2D
transform, transform, transform
 

Constructor Detail

AbstractAffineTransform2D.Identity2D

public AbstractAffineTransform2D.Identity2D()
Method Detail

getLinearPart

public LinearTransform2D getLinearPart()
Specified by:
getLinearPart in interface Similarity2D
Returns:
the linear part of the transform.

getScalingFactor

public double getScalingFactor()
Description copied from interface: Similarity2D
Returns the scaling factor of the transform. The scaling factor is positive for direct transforms.

Specified by:
getScalingFactor in interface Similarity2D
Returns:
the scaling factor of the transform.

getTranslationPart

public Translation2D getTranslationPart()
Specified by:
getTranslationPart in interface Similarity2D
Returns:
the translation part of the transform.

getInverseTransform

public AbstractAffineTransform2D.Identity2D getInverseTransform()
Specified by:
getInverseTransform in interface Bijection2D
Specified by:
getInverseTransform in interface LinearTransform2D
Overrides:
getInverseTransform in class GenericAffineTransform2D

isSimilarity

public boolean isSimilarity()
Specified by:
isSimilarity in interface AffineTransform2D
Overrides:
isSimilarity in class AbstractAffineTransform2D

isMotion

public boolean isMotion()
Description copied from interface: AffineTransform2D
Check if the transform is a motion, i.e. a compound of translations and rotation. Motion preserves area and orientation (directed or undirected) of shapes unchanged.

Specified by:
isMotion in interface AffineTransform2D
Overrides:
isMotion in class AbstractAffineTransform2D
Returns:
true in case of motion.

isIsometry

public boolean isIsometry()
Description copied from interface: AffineTransform2D
Check if the transform is an isometry, i.e. a compound of translation, rotation and reflection. Isometries preserves area of shapes unchanged, but can change orientation (directed or undirected).

Specified by:
isIsometry in interface AffineTransform2D
Overrides:
isIsometry in class AbstractAffineTransform2D
Returns:
true in case of isometry.

isDirect

public boolean isDirect()
Description copied from interface: AffineTransform2D
Check if the transform is direct, i.e. it preserves the orientation of transformed shapes.

Specified by:
isDirect in interface AffineTransform2D
Specified by:
isDirect in interface Isometry2D
Overrides:
isDirect in class AbstractAffineTransform2D
Returns:
true if transform is direct.

isIdentity

public boolean isIdentity()
Description copied from interface: AffineTransform2D
Check if the transform is equivalent to the identity transform.

Specified by:
isIdentity in interface AffineTransform2D
Overrides:
isIdentity in class AbstractAffineTransform2D
Returns:
true if the transform is identity