Hull2
Class JarvisMarch.Points

java.lang.Object
  extended by Hull2.JarvisMarch.Points
Enclosing class:
JarvisMarch

public static class JarvisMarch.Points
extends java.lang.Object

The Points class that gets all the points who the system sends to the JarvisMarch Convex Hull realization.


Field Summary
 double[] x
           
 double[] y
           
 
Constructor Summary
JarvisMarch.Points(double[] x, double[] y)
          Creates a new instance of the Points that takes two parameters, the double array x, for the x co-ordinates and the double array y, for the y co-ordinates.
 
Method Summary
 int startingPoint()
          The startingPoint function that founds the most south-west point to use it, as the starting point for the convex hull calculation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

x

public double[] x

y

public double[] y
Constructor Detail

JarvisMarch.Points

public JarvisMarch.Points(double[] x,
                          double[] y)
Creates a new instance of the Points that takes two parameters, the double array x, for the x co-ordinates and the double array y, for the y co-ordinates.

Method Detail

startingPoint

public int startingPoint()
The startingPoint function that founds the most south-west point to use it, as the starting point for the convex hull calculation.

Returns:
a pointer at the possition inside the arrays os the X + Y co-ordinates where is the most south-west point.
See Also:
JarvisMarch.getStartingPoint()