math.geom2d.transform
Class LinearRotation2D

java.lang.Object
  extended by math.geom2d.transform.AbstractAffineTransform2D
      extended by math.geom2d.transform.Rotation2D
          extended by math.geom2d.transform.LinearRotation2D
All Implemented Interfaces:
AffineTransform2D, Bijection2D, Isometry2D, LinearTransform2D, Motion2D, Similarity2D, Transform2D

public class LinearRotation2D
extends Rotation2D
implements LinearTransform2D

A rotation without translation part. Fixed point is the origin.

Author:
dlegland

Nested Class Summary
 
Nested classes/interfaces inherited from class math.geom2d.transform.AbstractAffineTransform2D
AbstractAffineTransform2D.Identity2D
 
Field Summary
 
Fields inherited from class math.geom2d.transform.Rotation2D
theta, x0, y0
 
Constructor Summary
LinearRotation2D(double angle)
           
 
Method Summary
 double[][] getAffineMatrix()
          return matrix of the transform coefficients.
 Point2D getCenter()
           
 double[] getCoefficients()
          return coefficients of the transform.
 LinearRotation2D getInverseTransform()
           
 void setCenter(Point2D point)
          Overrides parent method to keep center to origin.
 
Methods inherited from class math.geom2d.transform.Rotation2D
compose, getAngle, getLinearPart, getScalingFactor, getTranslationPart, isDirect, isIdentity, isMotion, setAngle
 
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
compose, isDirect, isIdentity, isIsometry, isMotion, isSimilarity
 
Methods inherited from interface math.geom2d.transform.Transform2D
transform, transform, transform
 

Constructor Detail

LinearRotation2D

public LinearRotation2D(double angle)
Method Detail

setCenter

public void setCenter(Point2D point)
Overrides parent method to keep center to origin.

Overrides:
setCenter in class Rotation2D

getCenter

public Point2D getCenter()
Overrides:
getCenter in class Rotation2D

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 Rotation2D

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 Rotation2D

getInverseTransform

public LinearRotation2D getInverseTransform()
Specified by:
getInverseTransform in interface Bijection2D
Specified by:
getInverseTransform in interface LinearTransform2D
Overrides:
getInverseTransform in class Rotation2D