math.geom2d.transform
Class LinearHomothecy2D

java.lang.Object
  extended by math.geom2d.transform.AbstractAffineTransform2D
      extended by math.geom2d.transform.Homothecy2D
          extended by math.geom2d.transform.LinearHomothecy2D
All Implemented Interfaces:
AffineTransform2D, Bijection2D, LinearTransform2D, Similarity2D, Transform2D

public class LinearHomothecy2D
extends Homothecy2D
implements LinearTransform2D

Defines a homothetic transform centered on the origin.


Nested Class Summary
 
Nested classes/interfaces inherited from class math.geom2d.transform.AbstractAffineTransform2D
AbstractAffineTransform2D.Identity2D
 
Field Summary
 
Fields inherited from class math.geom2d.transform.Homothecy2D
k, x0, y0
 
Constructor Summary
LinearHomothecy2D(double factor)
           
 
Method Summary
 double[][] getAffineMatrix()
          return matrix of the transform coefficients.
 double[] getCoefficients()
          return coefficients of the transform.
 LinearHomothecy2D getInverseTransform()
           
 
Methods inherited from class math.geom2d.transform.Homothecy2D
getLinearPart, getScalingFactor, getTranslationPart, isMotion
 
Methods inherited from class math.geom2d.transform.AbstractAffineTransform2D
compose, createRotation, createRotation, createRotation, createScaling, createScaling, createTranslation, createTranslation, equals, isDirect, isDirect, isIdentity, 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
compose, isDirect, isIdentity, isIsometry, isMotion, isSimilarity
 
Methods inherited from interface math.geom2d.transform.Transform2D
transform, transform, transform
 

Constructor Detail

LinearHomothecy2D

public LinearHomothecy2D(double factor)
Method Detail

getCoefficients

public double[] getCoefficients()
Description copied from interface: AffineTransform2D
return coefficients of the transform. Result is an array of 6 double.

Specified by:
getCoefficients in interface AffineTransform2D
Overrides:
getCoefficients in class Homothecy2D

getAffineMatrix

public double[][] getAffineMatrix()
Description copied from interface: AffineTransform2D
return matrix of the transform coefficients. Result is a 2x3 array of double.

Specified by:
getAffineMatrix in interface AffineTransform2D
Overrides:
getAffineMatrix in class Homothecy2D

getInverseTransform

public LinearHomothecy2D getInverseTransform()
Specified by:
getInverseTransform in interface Bijection2D
Specified by:
getInverseTransform in interface LinearTransform2D
Overrides:
getInverseTransform in class Homothecy2D