Package hec.geometry

Class LocalPt

java.lang.Object
hec.geometry.LocalPt

public class LocalPt extends Object
Represents points in local coordinate space.
  • Field Details

    • x

      public int x
    • y

      public int y
  • Constructor Details

    • LocalPt

      public LocalPt()
    • LocalPt

      public LocalPt(int px, int py)
    • LocalPt

      public LocalPt(LocalPt p)
  • Method Details

    • init

      public void init(int px, int py)
    • init

      public void init(LocalPt p)
    • length

      public double length()
    • getNormal

      public WorldPt getNormal()
    • ptNearLineSeg

      public double ptNearLineSeg(LocalPt pt0, LocalPt pt1, LocalPt ptn)
      Takes two points pt0,pt1 and returns that would occur on a line segment between pt1,pt0 that is closest to this point.ptn is the closest point and the return value is the distance.
      Parameters:
      pt0 -
      pt1 -
      ptn -
      Returns:
    • isValid

      public boolean isValid()
      Point is valid if its coordinates are valid
      Returns:
    • equals

      public boolean equals(LocalPt p)