Class IntersectRayPathIterator

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

public class IntersectRayPathIterator extends Object
  • Method Details

    • intersectRayPathIteratorEx

      public static IntersectionResultEx intersectRayPathIteratorEx(double aox, double aoy, double adx, double ady, PathIterator pit)
    • intersectRayPathIteratorEx

      public static IntersectionResultEx intersectRayPathIteratorEx(Point2D ao, Point2D ad, PathIterator pit, double maxT)
    • intersectRayPathIteratorEx

      public static IntersectionResultEx intersectRayPathIteratorEx(double aox, double aoy, double adx, double ady, PathIterator pit, double maxT)
      Intersects the given ray with the given path iterator.

      This method can produce the following IntersectionStatus codes:

      IntersectionStatus.INTERSECTION
      The ray intersects with a segment of the path within the given tolerance radius.
      IntersectionStatus.NO_INTERSECTION
      The ray does not intersect with a segment of the path.
      Parameters:
      aox - the x-coordinate of the origin of the ray
      aoy - the y-coordinate of the origin of the ray
      adx - the x-coordinate of the direction of the ray
      ady - the y-coordinate of the direction of the ray
      pit - the path iterator
      maxT - the maximal time of the line (1 = entire line)
      Returns:
      the intersection result
    • intersectRayPathIteratorEx

      public static IntersectionResultEx intersectRayPathIteratorEx(Point2D a0, Point2D a1, PathIterator pit)