org.geotools.referencing.operation
Class GeneralMatrix

java.lang.Object
  extended byjavax.vecmath.GMatrix
      extended byorg.geotools.referencing.operation.matrix.GeneralMatrix
          extended byorg.geotools.referencing.operation.GeneralMatrix
All Implemented Interfaces:
org.opengis.util.Cloneable, java.lang.Cloneable, org.opengis.referencing.operation.Matrix, java.io.Serializable, XMatrix
Direct Known Subclasses:
Matrix

Deprecated. Moved to the org.geotools.referencing.operation.matrix package.

public class GeneralMatrix
extends GeneralMatrix

A two dimensional array of numbers. Row and column numbering begins with zero.

Since:
2.0
Version:
$Id: GeneralMatrix.java 17672 2006-01-19 00:25:55Z desruisseaux $
Author:
Martin Desruisseaux
See Also:
Serialized Form

Constructor Summary
GeneralMatrix(java.awt.geom.AffineTransform transform)
          Deprecated. Constructs a 3×3 matrix from the specified affine transform.
GeneralMatrix(org.opengis.referencing.cs.AxisDirection[] srcAxis, org.opengis.referencing.cs.AxisDirection[] dstAxis)
          Deprecated. Constructs a transform changing axis order and/or direction.
GeneralMatrix(double[][] matrix)
          Deprecated. Constructs a new matrix from a two-dimensional array of doubles.
GeneralMatrix(org.opengis.spatialschema.geometry.Envelope srcRegion, org.opengis.referencing.cs.AxisDirection[] srcAxis, org.opengis.spatialschema.geometry.Envelope dstRegion, org.opengis.referencing.cs.AxisDirection[] dstAxis)
          Deprecated. Constructs a transform mapping a source region to a destination region.
GeneralMatrix(org.opengis.spatialschema.geometry.Envelope srcRegion, org.opengis.spatialschema.geometry.Envelope dstRegion)
          Deprecated. Constructs a transform that maps a source region to a destination region.
GeneralMatrix(javax.vecmath.GMatrix matrix)
          Deprecated. Constructs a new matrix and copies the initial values from the parameter matrix.
GeneralMatrix(int size)
          Deprecated. Constructs a square identity matrix of size  × .
GeneralMatrix(int numRow, int numCol)
          Deprecated. Constructs a matrix of size  × .
GeneralMatrix(int numRow, int numCol, double[] matrix)
          Deprecated. Constructs a  ×  matrix initialized to the values in the array.
GeneralMatrix(org.opengis.referencing.operation.Matrix matrix)
          Deprecated. Constructs a new matrix and copies the initial values from the parameter matrix.
 
Methods inherited from class org.geotools.referencing.operation.matrix.GeneralMatrix
getElements, getElements, isAffine, isIdentity, load, load, multiply, toAffineTransform2D, toString
 
Methods inherited from class javax.vecmath.GMatrix
add, add, clone, copySubMatrix, epsilonEquals, epsilonEquals, equals, equals, get, get, get, get, get, getColumn, getColumn, getElement, getNumCol, getNumRow, getRow, getRow, hashCode, identityMinus, invert, invert, LUD, mul, mul, mul, mulTransposeBoth, mulTransposeLeft, mulTransposeRight, negate, negate, set, set, set, set, set, set, setColumn, setColumn, setElement, setIdentity, setRow, setRow, setScale, setSize, setZero, sub, sub, SVD, trace, transpose, transpose
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.geotools.referencing.operation.matrix.XMatrix
invert, negate, setIdentity, setZero, transpose
 
Methods inherited from interface org.opengis.referencing.operation.Matrix
clone, getElement, getNumCol, getNumRow, setElement
 

Constructor Detail

GeneralMatrix

public GeneralMatrix(int size)
Deprecated. 
Constructs a square identity matrix of size  × .


GeneralMatrix

public GeneralMatrix(int numRow,
                     int numCol)
Deprecated. 
Constructs a matrix of size  × . Elements on the diagonal j==i are set to 1.


GeneralMatrix

public GeneralMatrix(int numRow,
                     int numCol,
                     double[] matrix)
Deprecated. 
Constructs a  ×  matrix initialized to the values in the array. The array values are copied in one row at a time in row major fashion. The array should be exactly numRow*numCol in length. Note that because row and column numbering begins with zero, and will be one larger than the maximum possible matrix index values.


GeneralMatrix

public GeneralMatrix(double[][] matrix)
              throws java.lang.IllegalArgumentException
Deprecated. 
Constructs a new matrix from a two-dimensional array of doubles.

Parameters:
matrix - Array of rows. Each row must have the same length.
Throws:
java.lang.IllegalArgumentException - if the specified matrix is not regular (i.e. if all rows doesn't have the same length).

GeneralMatrix

public GeneralMatrix(org.opengis.referencing.operation.Matrix matrix)
Deprecated. 
Constructs a new matrix and copies the initial values from the parameter matrix.


GeneralMatrix

public GeneralMatrix(javax.vecmath.GMatrix matrix)
Deprecated. 
Constructs a new matrix and copies the initial values from the parameter matrix.


GeneralMatrix

public GeneralMatrix(java.awt.geom.AffineTransform transform)
Deprecated. 
Constructs a 3×3 matrix from the specified affine transform.


GeneralMatrix

public GeneralMatrix(org.opengis.spatialschema.geometry.Envelope srcRegion,
                     org.opengis.spatialschema.geometry.Envelope dstRegion)
Deprecated. 
Constructs a transform that maps a source region to a destination region. Axis order and direction are left unchanged.

If the source dimension is equals to the destination dimension, then the transform is affine. However, the following special cases are also handled:

Parameters:
srcRegion - The source region.
dstRegion - The destination region.

GeneralMatrix

public GeneralMatrix(org.opengis.referencing.cs.AxisDirection[] srcAxis,
                     org.opengis.referencing.cs.AxisDirection[] dstAxis)
Deprecated. 
Constructs a transform changing axis order and/or direction. For example, the transform may converts (NORTH,WEST) coordinates into (EAST,NORTH). Axis direction can be inversed only. For example, it is illegal to transform (NORTH,WEST) coordinates into (NORTH,DOWN).

If the source dimension is equals to the destination dimension, then the transform is affine. However, the following special cases are also handled:


Parameters:
srcAxis - The set of axis direction for source coordinate system.
dstAxis - The set of axis direction for destination coordinate system.
Throws:
java.lang.IllegalArgumentException - If contains some axis not found in , or if some colinear axis were found.

GeneralMatrix

public GeneralMatrix(org.opengis.spatialschema.geometry.Envelope srcRegion,
                     org.opengis.referencing.cs.AxisDirection[] srcAxis,
                     org.opengis.spatialschema.geometry.Envelope dstRegion,
                     org.opengis.referencing.cs.AxisDirection[] dstAxis)
Deprecated. 
Constructs a transform mapping a source region to a destination region. Axis order and/or direction can be changed during the process. For example, the transform may convert (NORTH,WEST) coordinates into (EAST,NORTH). Axis direction can be inversed only. For example, it is illegal to transform (NORTH,WEST) coordinates into (NORTH,DOWN).

If the source dimension is equals to the destination dimension, then the transform is affine. However, the following special cases are also handled:


Parameters:
srcRegion - The source region.
srcAxis - Axis direction for each dimension of the source region.
dstRegion - The destination region.
dstAxis - Axis direction for each dimension of the destination region.
Throws:
MismatchedDimensionException - if the envelope dimension doesn't matches the axis direction array length.
java.lang.IllegalArgumentException - If contains some axis not found in , or if some colinear axis were found.


Copyright © GeoTools. All Rights Reserved.