Package org.lemsml.jlems.viz.plot
Class Geom
- java.lang.Object
-
- org.lemsml.jlems.viz.plot.Geom
-
public final class Geom extends java.lang.Object
-
-
Constructor Summary
Constructors Modifier Constructor Description private
Geom()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Position
centerOfGravity(double[] xpts, double[] ypts)
static double
distanceBetween(Position a, Position b)
static double[][]
innerPolygon(double[] x, double[] y)
static double[][]
makeLineBoundary(double[] xpts, double[] ypts)
static boolean
pointIsInside(double[] xb, double[] yb, double x, double y)
static boolean
pointIsInside(double[] xb, double[] yb, int x, int y)
-
-
-
Method Detail
-
pointIsInside
public static boolean pointIsInside(double[] xb, double[] yb, int x, int y)
-
pointIsInside
public static boolean pointIsInside(double[] xb, double[] yb, double x, double y)
-
makeLineBoundary
public static double[][] makeLineBoundary(double[] xpts, double[] ypts)
-
centerOfGravity
public static Position centerOfGravity(double[] xpts, double[] ypts)
-
innerPolygon
public static double[][] innerPolygon(double[] x, double[] y)
-
-