math.geom2d.transform
Interface Similarity2D

All Superinterfaces:
AffineTransform2D, Bijection2D, Transform2D
All Known Subinterfaces:
Isometry2D, Motion2D
All Known Implementing Classes:
AbstractAffineTransform2D.Identity2D, GlideReflection2D, Homothecy2D, LinearHomothecy2D, LinearLineReflection2D, LinearRotation2D, LineReflection2D, PointSymmetry2D, Rotation2D, Translation2D

public interface Similarity2D
extends AffineTransform2D, Bijection2D

A similarity is a transformation which conserves lengths ratios and angles (not necessarily oriented).

Author:
dlegland

Method Summary
 LinearTransform2D getLinearPart()
           
 double getScalingFactor()
          Returns the scaling factor of the transform.
 Translation2D getTranslationPart()
           
 
Methods inherited from interface math.geom2d.transform.AffineTransform2D
compose, getAffineMatrix, getCoefficients, isDirect, isIdentity, isIsometry, isMotion, isSimilarity
 
Methods inherited from interface math.geom2d.transform.Bijection2D
getInverseTransform
 
Methods inherited from interface math.geom2d.transform.Transform2D
transform, transform, transform
 

Method Detail

getScalingFactor

double getScalingFactor()
Returns the scaling factor of the transform. The scaling factor is positive for direct transforms.

Returns:
the scaling factor of the transform.

getLinearPart

LinearTransform2D getLinearPart()
Returns:
the linear part of the transform.

getTranslationPart

Translation2D getTranslationPart()
Returns:
the translation part of the transform.