Package hec.map.crs

Interface Transform

All Known Implementing Classes:
IdentityTransformImpl

public interface Transform
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    transform(double[] srcXPts, double[] srcYPts, int srcOffset, double[] dstXPts, double[] dstYPts, int dstOffset, int numPts)
    Transforms a list of coordinate point ordinal values.
    double[]
    transform(double srcXPt, double srcYPt, double[] returnPts)
    Transforms a list of coordinate point ordinal values.
    void
    transform(float[] srcXPts, float[] srcYPts, int srcOffset, float[] dstXPts, float[] dstYPts, int dstOffset, int numPts)
    Transforms a list of coordinate point ordinal values.
    float[]
    transform(float srcXPt, float srcYPt, float[] returnPts)
    Transforms a list of coordinate point ordinal values.
     
  • Method Details

    • transform

      double[] transform(double srcXPt, double srcYPt, double[] returnPts) throws CRSException
      Transforms a list of coordinate point ordinal values.

      Parameters:
      srcXPt - the x points.
      srcYPt - the y points.
      returnPts - an array that contains the transformed points. This can be null or undersized and if it is, a new array is created to hold the return points.

      Returns:
      an array that contains the output point. [0] is the xpoint, [1] is the ypoint. This will be the same array if a valid value is passed in the returnPts
      Throws:
      CRSException
    • transform

      float[] transform(float srcXPt, float srcYPt, float[] returnPts) throws CRSException
      Transforms a list of coordinate point ordinal values.

      Parameters:
      srcXPt - the x points.
      srcYPt - the y points.
      returnPts - an array that contains the transformed points. This can be null or undersized and if it is, a new array is created to hold the return points.

      Returns:
      an array that contains the output point. [0] is the xpoint, [1] is the ypoint. This will be the same array if a valid value is passed in the returnPts
      Throws:
      CRSException
    • transform

      void transform(double[] srcXPts, double[] srcYPts, int srcOffset, double[] dstXPts, double[] dstYPts, int dstOffset, int numPts) throws CRSException
      Transforms a list of coordinate point ordinal values. This method is provided for efficiently transforming many points.
      Parameters:
      srcXPts - the array containing source x points.
      srcYPts - the array containing source y points.
      srcOffset - the offset to the first point to be transformed in the source arrays.
      dstXPts - the array into which the transformed point X coordinates are returned. May be the same than srcXPts.
      dstYPts - the array into which the transformed point Y coordinates are returned. May be the same than srcYPts.
      dstOffset - the offset to the location of the first transformed point that is stored in the destination array.
      numPts - the number of point objects to be transformed.
      Throws:
      CRSException
    • transform

      void transform(float[] srcXPts, float[] srcYPts, int srcOffset, float[] dstXPts, float[] dstYPts, int dstOffset, int numPts) throws CRSException
      Transforms a list of coordinate point ordinal values. This method is provided for efficiently transforming many points.
      Parameters:
      srcXPts - the array containing source x points.
      srcYPts - the array containing source y points.
      srcOffset - the offset to the first point to be transformed in the source arrays.
      dstXPts - the array into which the transformed point X coordinates are returned. May be the same than srcXPts.
      dstYPts - the array into which the transformed point Y coordinates are returned. May be the same than srcYPts.
      dstOffset - the offset to the location of the first transformed point that is stored in the destination array.
      numPts - the number of point objects to be transformed.
      Throws:
      CRSException
    • transform

      Image transform(RenderedImage rimage, Rectangle2D extent) throws CRSException
      Throws:
      CRSException