Class ShapeUtils

java.lang.Object
io.deephaven.plot.util.ShapeUtils
All Implemented Interfaces:
Serializable

public class ShapeUtils extends Object implements Serializable
Utilities for Shape.
See Also:
  • 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