Package hec.geometry
Class WorldPt
java.lang.Object
hec.geometry.WorldPt
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
WorldPt3d
Represents points in world coordinate space.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondouble
distToLineSeg
(hec.geometry.WorldLineSeg l) double
distToLineSeg
(WorldPt pt0, WorldPt pt1) double
distToPoint
(WorldPt pt) void
init
(double pe, double pn) void
boolean
isValid()
Point is valid if its coordinates are valid.double
length()
void
parseString
(String str) double
ptNearLineSeg
(hec.geometry.WorldLineSeg l, WorldPt ptn) double
ptNearLineSeg
(WorldPt pt0, WorldPt pt1, WorldPt ptn) toString()
-
Field Details
-
e
public double e -
n
public double n
-
-
Constructor Details
-
WorldPt
public WorldPt() -
WorldPt
public WorldPt(double pe, double pn) -
WorldPt
-
-
Method Details
-
init
public void init(double pe, double pn) -
init
-
length
public double length() -
normalize
public void normalize() -
getNormal
-
distToPoint
-
distToLineSeg
-
distToLineSeg
public double distToLineSeg(hec.geometry.WorldLineSeg l) -
ptNearLineSeg
-
ptNearLineSeg
-
isValid
public boolean isValid()Point is valid if its coordinates are valid. -
toString
-
parseString
-