Class GeometryUtil

java.lang.Object
com.github.weisj.jsvg.geometry.util.GeometryUtil

public final class GeometryUtil extends Object
  • Method Details

    • approximatelyEqual

      public static boolean approximatelyEqual(double a, double b)
    • approximatelyZero

      public static boolean approximatelyZero(double a)
    • notablyGreater

      public static boolean notablyGreater(double a, double b)
    • approximatelyNegative

      public static boolean approximatelyNegative(double a)
    • scaleXOfTransform

      public static double scaleXOfTransform(@NotNull @NotNull AffineTransform at)
    • scaleYOfTransform

      public static double scaleYOfTransform(@NotNull @NotNull AffineTransform at)
    • midPoint

      @NotNull public static Point2D.Float midPoint(@NotNull Point2D.Float x, @NotNull Point2D.Float y)
    • lerp

      @NotNull public static Point2D.Float lerp(float t, @NotNull Point2D.Float a, @NotNull Point2D.Float b)
    • lerp

      public static float lerp(float t, float a, float b)
    • distanceSquared

      public static double distanceSquared(@NotNull Point2D.Float p1, @NotNull Point2D.Float p2, float scaleX, float scaleY)
    • distanceSquared

      public static double distanceSquared(@NotNull Point2D.Float p1, @NotNull Point2D.Float p2)
    • distanceSquared

      public static double distanceSquared(double x1, double y1, double x2, double y2)
    • pathLength

      public static double pathLength(@NotNull @NotNull Shape shape)
    • lineLength

      public static double lineLength(double x1, double y1, double x2, double y2)