Class Line.LineTransform

java.lang.Object
org.apache.commons.math3.geometry.euclidean.twod.Line.LineTransform
All Implemented Interfaces:
Transform<Euclidean2D,Euclidean1D>
Enclosing class:
Line

private static class Line.LineTransform extends Object implements Transform<Euclidean2D,Euclidean1D>
Class embedding an affine transform.

This class is used in order to apply an affine transform to a line. Using a specific object allow to perform some computations on the transform only once even if the same transform is to be applied to a large number of lines (for example to a large polygon)./

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private double
    cXX * cYY - cYX * cXY.
    private double
    cXX * cY1 - cYX * cX1.
    private double
    cXY * cY1 - cYY * cX1.
    private double
    Transform addendum for output abscissa.
    private double
    Transform factor between input abscissa and output abscissa.
    private double
    Transform factor between input ordinate and output abscissa.
    private double
    Transform addendum for output ordinate.
    private double
    Transform factor between input abscissa and output ordinate.
    private double
    Transform factor between input ordinate and output ordinate.
  • Constructor Summary

    Constructors
    Constructor
    Description
    LineTransform(double cXX, double cYX, double cXY, double cYY, double cX1, double cY1)
    Build an affine line transform from a n AffineTransform.
  • Method Summary

    Modifier and Type
    Method
    Description
    Transform an hyperplane of a space.
    Transform a sub-hyperplane embedded in an hyperplane.
    Transform a point of a space.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • cXX

      private double cXX
      Transform factor between input abscissa and output abscissa.
    • cYX

      private double cYX
      Transform factor between input abscissa and output ordinate.
    • cXY

      private double cXY
      Transform factor between input ordinate and output abscissa.
    • cYY

      private double cYY
      Transform factor between input ordinate and output ordinate.
    • cX1

      private double cX1
      Transform addendum for output abscissa.
    • cY1

      private double cY1
      Transform addendum for output ordinate.
    • c1Y

      private double c1Y
      cXY * cY1 - cYY * cX1.
    • c1X

      private double c1X
      cXX * cY1 - cYX * cX1.
    • c11

      private double c11
      cXX * cYY - cYX * cXY.
  • Constructor Details

    • LineTransform

      LineTransform(double cXX, double cYX, double cXY, double cYY, double cX1, double cY1) throws MathIllegalArgumentException
      Build an affine line transform from a n AffineTransform.
      Parameters:
      cXX - transform factor between input abscissa and output abscissa
      cYX - transform factor between input abscissa and output ordinate
      cXY - transform factor between input ordinate and output abscissa
      cYY - transform factor between input ordinate and output ordinate
      cX1 - transform addendum for output abscissa
      cY1 - transform addendum for output ordinate
      Throws:
      MathIllegalArgumentException - if the transform is non invertible
      Since:
      3.6
  • Method Details