All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class sdoOracle.WPoint

java.lang.Object
   |
   +----sdoOracle.WPoint

public class WPoint
extends Object
Class WPoint defines a spatial location (x,y) for some coordinate reference system.


Constructor Index

 o WPoint()
Constructs a new WPoint object.
 o WPoint(double, double)
Constructs a new WPoint object passing x and y coordinates.

Method Index

 o Define(double, double)
Defines the coordinate for the WPoint object.
 o Distance(WPoint)
Returns the distance between two WPoint objects.
 o GetX()
Returns the x coordinate for the WPoint object.
 o GetY()
Returns the y coordinate for the WPoint object.
 o Max(WPoint)
Returns a WPoint object that contains the maximum x and y coordinates between two WPoint objects.
 o Min(WPoint)
Returns a WPoint object that contains the minimum x and y coordinates between two WPoint objects.
 o SetX(double)
Defines the x coordinate for the WPoint object.
 o SetY(double)
Defines the y coordinate for the WPoint object.

Constructors

 o WPoint
 public WPoint()
Constructs a new WPoint object.

 o WPoint
 public WPoint(double x,
               double y)
Constructs a new WPoint object passing x and y coordinates.

Parameters:
x - the x coordinate for the spatial location.
y - the y coordinate for the spatial location.

Methods

 o Define
 public void Define(double x,
                    double y)
Defines the coordinate for the WPoint object.

Parameters:
x - the x coordinate for the spatial location.
y - the y coordinate for the spatial location.
 o GetX
 public double GetX()
Returns the x coordinate for the WPoint object.

Returns:
returns a double value.
 o SetX
 public void SetX(double x)
Defines the x coordinate for the WPoint object.

Parameters:
x - the x coordinate for the spatial location.
 o GetY
 public double GetY()
Returns the y coordinate for the WPoint object.

Returns:
returns a double value.
 o SetY
 public void SetY(double y)
Defines the y coordinate for the WPoint object.

Parameters:
y - the y coordinate for the spatial location.
 o Min
 public WPoint Min(WPoint input)
Returns a WPoint object that contains the minimum x and y coordinates between two WPoint objects.

Parameters:
input - the input WPoint object.
Returns:
returns a WPoint coordinate defined by the minimum x, y values.
 o Max
 public WPoint Max(WPoint input)
Returns a WPoint object that contains the maximum x and y coordinates between two WPoint objects.

Parameters:
input - the input WPoint object.
Returns:
returns a WPoint coordinate defined by the maximum x, y values.
 o Distance
 public double Distance(WPoint input)
Returns the distance between two WPoint objects.

Parameters:
input - the input WPoint object.
Returns:
returns a double value representing the distance.

All Packages  Class Hierarchy  This Package  Previous  Next  Index