Class GeometryUtil
java.lang.Object
com.github.weisj.jsvg.geometry.util.GeometryUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanapproximatelyEqual(double a, double b)static booleanapproximatelyNegative(double a)static booleanapproximatelyZero(double a)static doubledistanceSquared(double x1, double y1, double x2, double y2)static doubledistanceSquared(Point2D.Float p1, Point2D.Float p2)static doubledistanceSquared(Point2D.Float p1, Point2D.Float p2, float scaleX, float scaleY)static floatlerp(float t, float a, float b)static Point2D.Floatlerp(float t, Point2D.Float a, Point2D.Float b)static doublelineLength(double x1, double y1, double x2, double y2)static Point2D.FloatmidPoint(Point2D.Float x, Point2D.Float y)static booleannotablyGreater(double a, double b)static doublepathLength(@NotNull Shape shape)static doublescaleXOfTransform(@NotNull AffineTransform at)static doublescaleYOfTransform(@NotNull AffineTransform at)
-
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
-
scaleYOfTransform
-
midPoint
-
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
-
distanceSquared
public static double distanceSquared(double x1, double y1, double x2, double y2) -
pathLength
-
lineLength
public static double lineLength(double x1, double y1, double x2, double y2)
-