Class InfoToolHelperUtils


  • public class InfoToolHelperUtils
    extends Object
    Contains static methods used by some InfoToolHelper classes.
    Since:
    8.0
    Author:
    Michael Bedward
    • Constructor Detail

      • InfoToolHelperUtils

        public InfoToolHelperUtils()
    • Method Detail

      • getTransformed

        public static Position2D getTransformed​(Position2D pos,
                                                MathTransform transform)
        Transforms a position. If transform is null the original position is returned.
        Parameters:
        pos - the position
        Returns:
        the transformed position
      • asNumberArray

        public static Number[] asNumberArray​(Object objArray)
        Convert the Object returned by into an array of {@code Numbers}.
        Parameters:
        objArray - an Object representing a primitive array
        Returns:
        a new array of Numbers