Class ContourPlot.PointeredPoint2D

java.lang.Object
java.awt.geom.Point2D
gov.nih.mipav.model.algorithms.ContourPlot.PointeredPoint2D
All Implemented Interfaces:
Cloneable
Enclosing class:
ContourPlot

public class ContourPlot.PointeredPoint2D extends Point2D
The PointeredPoint2D class is an implementation of the Point2D class that uses two double arrays of size 1 to store its x and y coordinate. This allows for referencing the x or y coordinate elsewhere (kind of as a pointer to the value) e.g. in another PointeredPoint2D so that 2 points can share a coordinate, for example points on the same axis.
Author:
hageldave
  • Field Details

    • x

      public final double[] x
      'pointer' to x coordinate
    • y

      public final double[] y
      'pointer' to y coordinate
  • Constructor Details

    • PointeredPoint2D

      public PointeredPoint2D()
      Creates point at (0,0)
    • PointeredPoint2D

      public PointeredPoint2D(double x, double y)
      Creates point at (x,y)
      Parameters:
      x - coordinate
      y - coordinate
    • PointeredPoint2D

      public PointeredPoint2D(double[] xptr, double[] yptr)
      Creates point using the specified arrays as pointers for this point's coordinates
      Parameters:
      xptr - array to use as pointer to x coordinate
      yptr - array to use as pointer to y coordinate
  • Method Details