drasys.or.geom.rect3
Class Point
java.lang.Object
|
+--drasys.or.geom.rect3.Rect3
|
+--drasys.or.geom.rect3.Point
- public class Point
- extends Rect3
- implements PointI, java.io.Serializable
An implementation of a point in the 3D rectangular coordinate system.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone,
finalize,
getClass,
notify,
notifyAll,
wait,
wait,
wait |
Point
public Point(double x,
double y,
double z)
Point
public Point(PointI point)
Point
public Point(VectorI coordinates)
Point
public Point(double[] coordinates)
range
public RangeI range()
centroid
public PointI centroid()
nearestPointTo
public PointI nearestPointTo(PointI point)
x
public double x()
- Description copied from interface: PointI
- Returns the X coordinate.
- Specified by:
- x in interface PointI
y
public double y()
- Description copied from interface: PointI
- Returns the Y coordinate.
- Specified by:
- y in interface PointI
z
public double z()
- Description copied from interface: PointI
- Returns the z coordinate.
- Specified by:
- z in interface PointI
getCoordinate
public double getCoordinate(int i)
- Description copied from interface: PointI
- Returns individual coordinates by ordinality.
hashCode
public int hashCode()
- Overrides:
- hashCode in class java.lang.Object
equals
public static boolean equals(PointI a,
PointI b,
double accuracy)
equals
public boolean equals(java.lang.Object o)
- Overrides:
- equals in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
- toString in class java.lang.Object
getDirectionTo
public double getDirectionTo(PointI point)
- Description copied from interface: PointI
- Returns the direction to the argument.
The return value is in the range -PI to +PI.
directionTo
public double directionTo(PointI point)
- Returns the direction to the argument.
The return value is in the range -PI to +PI and is measured in the xy-plane and in the direction of the positive x-axis.
If angle is positive if 'point' is counterclockwise and negative if it is clockwise.
- Specified by:
- directionTo in interface PointI
distanceProxyTo
public double distanceProxyTo(PointI point)
- Returns an easily computable proxy that can be used to compare the distance between two points.
- Returns:
- the square of the distance.
distanceTo
public double distanceTo(PointI point)
Copyright(C)1997-2000 by DRA Systems all rights reserved. OpsResearch.com