java.lang.Object
org.jhotdraw8.geom.intersect.IntersectPointRay
-
Method Summary
Modifier and TypeMethodDescriptionargumentOnRay(double ox, double oy, double dx, double dy, double amax, double px, double py, double tolerance) static doubleprojectedPointOnRay(double ox, double oy, double dx, double dy, double px, double py) Projects a point on an infinite line defined by the given ray.
-
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 rayoy- y origin of raydx- x direction of raydy- y direction of raypx- x coordinate of pointpy- y coordinate of point- Returns:
- argument 't' at point px,py on the ray.
-
argumentOnRay
-