Class PathUtilties

java.lang.Object
armyc2.c2sd.renderer.utilities.PathUtilties

public class PathUtilties extends Object
  • Constructor Details

  • Method Details

    • makeRectF

      public static RectF makeRectF(float x, float y, float w, float h)
    • addLine

      public static void addLine(Path path, float x1, float y1, float x2, float y2)
    • addEllipse

      public static void addEllipse(Path path, float x, float y, float w, float h)
    • addEllipse

      public static void addEllipse(Path path, float x, float y, float w, float h, Path.Direction dir)
    • arc

      public static void arc(Path path, float x, float y, float r, float sAngle, float eAngle)
      Parameters:
      path -
      x -
      y -
      r - radius
      sAngle - start angle in degrees
      eAngle - how many degrees relative to sAngle
    • arc

      public static void arc(Path path, float x, float y, float r, float sAngle, float eAngle, boolean moveTo)
      Parameters:
      path -
      x -
      y -
      r - radius
      sAngle - start angle in degrees
      eAngle - how many degrees relative to sAngle
      moveTo - If true, begin a new contour
    • addRoundedRect

      public static void addRoundedRect(Path path, float x, float y, float w, float h, float rw, float rh)
    • addRoundedRect

      public static void addRoundedRect(Path path, float x, float y, float w, float h, float rw, float rh, Path.Direction dir)