Package hec.geometry

Class WorldPt

java.lang.Object
hec.geometry.WorldPt
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
WorldPt3d

public class WorldPt extends Object implements Serializable
Represents points in world coordinate space.
See Also:
  • Field Details

    • e

      public double e
    • n

      public double n
  • Constructor Details

    • WorldPt

      public WorldPt()
    • WorldPt

      public WorldPt(double pe, double pn)
    • WorldPt

      public WorldPt(WorldPt p)
  • Method Details

    • init

      public void init(double pe, double pn)
    • init

      public void init(WorldPt p)
    • length

      public double length()
    • normalize

      public void normalize()
    • getNormal

      public WorldPt getNormal()
    • distToPoint

      public double distToPoint(WorldPt pt)
    • distToLineSeg

      public double distToLineSeg(WorldPt pt0, WorldPt pt1)
    • distToLineSeg

      public double distToLineSeg(hec.geometry.WorldLineSeg l)
    • ptNearLineSeg

      public double ptNearLineSeg(WorldPt pt0, WorldPt pt1, WorldPt ptn)
    • ptNearLineSeg

      public double ptNearLineSeg(hec.geometry.WorldLineSeg l, WorldPt ptn)
    • isValid

      public boolean isValid()
      Point is valid if its coordinates are valid.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • parseString

      public String parseString(String str)