Class Point
java.lang.Object
davidmarino.model.mapmodels.Point
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
drawPoints
(Graphics2D g2, ArrayList<Point> points, Color color) Renders a set of points.boolean
generateRandomPoints
(int count) Creates random points dispersed within the domain and range of the image.int
hashCode()
static Point
interpolate
(Point a, Point b, double t) Calculates a point between a and b based on value t.toString()
static boolean
withinBounds
(ArrayList<Point> points, int x, int y, int space) Checks if a point is within a certain distance of another point.
-
Field Details
-
x
public double x -
y
public double y -
z
public double z
-
-
Constructor Details
-
Point
public Point(double x, double y) Point constructor not including z- Parameters:
x
-y
-
-
Point
public Point(double x, double y, double z) Point copy constructor- Parameters:
x
-y
-z
-
-
-
Method Details
-
withinBounds
-
generateRandomPoints
-
interpolate
-
drawPoints
Renders a set of points.- Parameters:
g2
- is the render librarypoints
- to be renderedcolor
- of the points
-
toString
-
equals
-
hashCode
-