Class JxnVectorTransformation


  • public class JxnVectorTransformation
    extends Object
    Implements an affine transformation and mapping methods for vectors and curves (experimental status).
    See Also:
    Wikipedia
    • Constructor Detail

      • JxnVectorTransformation

        public JxnVectorTransformation()
        Creates a three-dimensional identity transformation.
      • JxnVectorTransformation

        public JxnVectorTransformation​(int dim)
        Creates an identity transformation of dimension dim.
      • JxnVectorTransformation

        protected JxnVectorTransformation​(double[][] tm)
        Creates a transformation object from a given matrix tm.
        The transformation y = A x + b is represented by the augmented n x n+1 matrix tm = ( A | b ).
        See Also:
        Wikipedia
      • JxnVectorTransformation

        public JxnVectorTransformation​(JxnVectorAlgebra ex,
                                       JxnVectorAlgebra ey,
                                       JxnVectorAlgebra ez)
        Creates a transformation object from given coordinate (basis) vectors.
        The vectors ex, ey and ez must be linear independent but need not necessarily be orthogonal or normalized.
        If ex, ey and ez are ...
        ... target coordinate vectors given in source coordinates the transformation object maps target coordinates into source coordinates.
        ... source coordinate vectors given in target coordinates the transformation object maps source coordinates into target coordinates.
        Use the inverse() method to get the reverse mapping.