Class InverseShearTransform

    • Constructor Detail

      • InverseShearTransform

        public InverseShearTransform​(int nDim,
                                     int shearDimension,
                                     int referenceDimension)
        Parameters:
        nDim - Number of dimensions (source and target dimensions must be the same)
        shearDimension - Dimension to be sheared.
        referenceDimension - Dimension used as reference for shear.
      • InverseShearTransform

        protected InverseShearTransform​(int nDim,
                                        int shearDimension,
                                        int referenceDimension,
                                        AbstractShearTransform inverse)
        Protected constructor for passing an inverse to avoid construction of unnecessary objects.
        Parameters:
        nDim - Number of dimensions (source and target dimensions must be the same)
        shearDimension - Dimension to be sheared.
        referenceDimension - Dimension used as reference for shear.
        inverse -
    • Method Detail

      • apply

        public void apply​(long[] source,
                          long[] target)
        Description copied from interface: Transform
        Apply the Transform to a source vector to obtain a target vector.
        Parameters:
        source - source coordinates.
        target - set this to the target coordinates.
      • apply

        public void apply​(int[] source,
                          int[] target)
        Description copied from interface: Transform
        Apply the Transform to a source vector to obtain a target vector.
        Parameters:
        source - source coordinates.
        target - set this to the target coordinates.
      • transform

        public BoundingBox transform​(BoundingBox bb)
        Description copied from interface: BoundingBoxTransform
        Return a transformed bounding box. The transformation can be carried out in-place.
        Returns:
        the transformed bounding box