Interface IOperatorConverter


public interface IOperatorConverter
A locally used strategy for converting relative coordinates to absolute coordinates (in the current SVG coordinate space). Its implementation differs between Smooth (Shorthand) Bézier curves and all other path commands.
  • Method Summary

    Modifier and Type
    Method
    Description
    String[]
    makeCoordinatesAbsolute(String[] relativeCoordinates, double[] initialPoint)
    Convert an array of relative coordinates to an array with the same size containing absolute coordinates.
  • Method Details

    • makeCoordinatesAbsolute

      String[] makeCoordinatesAbsolute (String[] relativeCoordinates, double[] initialPoint)
      Convert an array of relative coordinates to an array with the same size containing absolute coordinates.
      Parameters:
      relativeCoordinates - the initial set of coordinates
      initialPoint - an array representing the point relative to which the relativeCoordinates are defined
      Returns:
      a String array of absolute coordinates, with the same length as the input array