Class IntersectPointRay

java.lang.Object
org.jhotdraw8.geom.intersect.IntersectPointRay

public class IntersectPointRay extends Object
  • Method Details

    • projectedPointOnRay

      public static double projectedPointOnRay(double ox, double oy, double dx, double dy, double px, double py)
      Projects a point on an infinite line defined by the given ray. The returned argument value is in range [Double.NEGATIVE_INFINITY,Double.POSITIVE_INFINITY].
      Parameters:
      ox - x origin of ray
      oy - y origin of ray
      dx - x direction of ray
      dy - y direction of ray
      px - x coordinate of point
      py - y coordinate of point
      Returns:
      argument 't' at point px,py on the ray.
    • argumentOnRay

      public static @Nullable Double argumentOnRay(double ox, double oy, double dx, double dy, double amax, double px, double py, double tolerance)