Class Transform3D

java.lang.Object
org.gvsig.fmap.geom.jts.transform.Transform3D
All Implemented Interfaces:
org.gvsig.fmap.geom.transform.Transform

public class Transform3D extends Object implements org.gvsig.fmap.geom.transform.Transform
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final double
    The constant used for testing results.
    protected double
    coefficients for x coordinate.
    protected double
    coefficients for x coordinate.
    protected double
    coefficients for x coordinate.
    protected double
    coefficients for x coordinate.
    protected double
    coefficients for y coordinate.
    protected double
    coefficients for y coordinate.
    protected double
    coefficients for y coordinate.
    protected double
    coefficients for y coordinate.
    protected double
    coefficients for z coordinate.
    protected double
    coefficients for z coordinate.
    protected double
    coefficients for z coordinate.
    protected double
    coefficients for z coordinate.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    Transform3D(double[] coefs)
     
    Transform3D(double xx, double yx, double zx, double tx, double xy, double yy, double zy, double ty, double xz, double yz, double zz, double tz)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    double[]
    Returns the affine coefficients of the transform.
    org.gvsig.fmap.geom.transform.Transform
    concatenate(org.gvsig.fmap.geom.transform.Transform other)
    Returns the affine transform created by applying first the affine transform given by that, then this affine transform.
    boolean
    Compares two transforms.
    Computes the inverse affine transform.
    boolean
     
    preConcatenate(org.gvsig.fmap.geom.transform.Transform other)
    Return the affine transform created by applying first this affine transform, then the affine transform given by that.
    org.gvsig.fmap.geom.primitive.Point
    transform(org.gvsig.fmap.geom.primitive.Point src)
    Transforms the input point.
    org.gvsig.fmap.geom.primitive.Point[]
    transform(org.gvsig.fmap.geom.primitive.Point[] src, org.gvsig.fmap.geom.primitive.Point[] dst)
    Transforms the input point array, stores the result in the pre-allocated array, and returns a pointer to the result array.

    Methods inherited from class java.lang.Object

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

    • ACCURACY

      public static final double ACCURACY
      The constant used for testing results.
      See Also:
    • m00

      protected double m00
      coefficients for x coordinate.
    • m01

      protected double m01
      coefficients for x coordinate.
    • m02

      protected double m02
      coefficients for x coordinate.
    • m03

      protected double m03
      coefficients for x coordinate.
    • m10

      protected double m10
      coefficients for y coordinate.
    • m11

      protected double m11
      coefficients for y coordinate.
    • m12

      protected double m12
      coefficients for y coordinate.
    • m13

      protected double m13
      coefficients for y coordinate.
    • m20

      protected double m20
      coefficients for z coordinate.
    • m21

      protected double m21
      coefficients for z coordinate.
    • m22

      protected double m22
      coefficients for z coordinate.
    • m23

      protected double m23
      coefficients for z coordinate.
  • Constructor Details

    • Transform3D

      public Transform3D()
    • Transform3D

      public Transform3D(double[] coefs)
    • Transform3D

      public Transform3D(double xx, double yx, double zx, double tx, double xy, double yy, double zy, double ty, double xz, double yz, double zz, double tz)
  • Method Details

    • isIdentity

      public boolean isIdentity()
      Specified by:
      isIdentity in interface org.gvsig.fmap.geom.transform.Transform
    • coefficients

      public double[] coefficients()
      Returns the affine coefficients of the transform. Result is an array of 12 double.
    • inverse

      public Transform3D inverse()
      Computes the inverse affine transform.
      Specified by:
      inverse in interface org.gvsig.fmap.geom.transform.Transform
    • concatenate

      public org.gvsig.fmap.geom.transform.Transform concatenate(org.gvsig.fmap.geom.transform.Transform other)
      Returns the affine transform created by applying first the affine transform given by that, then this affine transform.
      Specified by:
      concatenate in interface org.gvsig.fmap.geom.transform.Transform
      Parameters:
      that - the transform to apply first
      Returns:
      the composition this * that
    • preConcatenate

      public Transform3D preConcatenate(org.gvsig.fmap.geom.transform.Transform other)
      Return the affine transform created by applying first this affine transform, then the affine transform given by that.
      Specified by:
      preConcatenate in interface org.gvsig.fmap.geom.transform.Transform
      Parameters:
      other - the transform to apply in a second step
      Returns:
      the composition that * this
    • transform

      public org.gvsig.fmap.geom.primitive.Point[] transform(org.gvsig.fmap.geom.primitive.Point[] src, org.gvsig.fmap.geom.primitive.Point[] dst)
      Transforms the input point array, stores the result in the pre-allocated array, and returns a pointer to the result array. A new array is created if res is null or has length smaller than of src.
      Specified by:
      transform in interface org.gvsig.fmap.geom.transform.Transform
      Parameters:
      src -
      dst -
      Returns:
    • transform

      public org.gvsig.fmap.geom.primitive.Point transform(org.gvsig.fmap.geom.primitive.Point src)
      Transforms the input point.
      Specified by:
      transform in interface org.gvsig.fmap.geom.transform.Transform
      Parameters:
      src -
      Returns:
    • equals

      public boolean equals(Object obj)
      Compares two transforms. Returns true if all inner fields are equal up to the precision given by Shape3D.ACCURACY.
      Overrides:
      equals in class Object