Class ShapeUtils

java.lang.Object
com.illumon.iris.db.plot.util.ShapeUtils
All Implemented Interfaces:
Serializable

public class ShapeUtils
extends Object
implements Serializable
Utilities for Shape.
See Also:
Serialized Form
  • Method Details

    • resize

      public static Shape resize​(Shape s, double factor)
      Scales a shape by multiplying x and y coordinates by factor.
      Parameters:
      s - shape
      factor - size factor
      Returns:
      new shape equal to s resized by factor
    • rotate

      public static Shape rotate​(Shape s, double angle)
      Rotates a shape by multiplying x and y coordinates by angle radians.
      Parameters:
      s - shape
      angle - angle in radians
      Returns:
      new shape equal to s rotated by angle