throws IllegalArgumentException return rayCylinder(origin[0], origin[1], origin[2], direction[0], direction[1], direction[2], axis,
/** * Compute the intersection point of the ray and a plane. Assumes that the * plane equation defines a unit normal in the coefficients a,b,c. If not, * weird things happen. * * @param origin The origin of the ray * @param direction The direction of the ray * @param plane The coefficients for the plane equation (ax + by + cz + d = 0) * @param point The intersection point for returning * @return true if there was an intersection, false if not */ public boolean rayPlane(float[] origin, float[] direction, float[] plane, float[] point) { return rayPlane(origin[0], origin[1], origin[2], direction[0], direction[1], direction[2], plane, point); }
working2dCoords = new float[numCoords * 2]; return rayPolygonChecked(origin, direction, length,
transformPicks(reverseTx, origin, direction); ret_val = rayTriangleArray(pickStart, pickDir, length, ret_val = rayQuadArray(pickStart, pickDir, length, ret_val = rayTriangleStripArray(pickStart, pickDir, length, ret_val = rayTriangleFanArray(pickStart, pickDir, length, ret_val = rayIndexedQuadArray(pickStart, pickDir, length, ret_val = rayIndexedTriangleArray(pickStart, pickDir, length,
/** * Compute the intersection point of the ray and a sphere. * * @param origin The origin of the ray * @param direction The direction of the ray * @param sphereCenter The coordinates of the center of the sphere * @param sphereRadius The radius of the sphere * @param point The intersection point for returning * @return true if there was an intersection, false if not */ public boolean raySphere(float[] origin, float[] direction, float[] sphereCenter, float sphereRadius, float[] point) { return raySphere(origin[0], origin[1], origin[2], direction[0], direction[1], direction[2], sphereCenter, sphereRadius, point); }
/** * Compute the intersection point of the ray and a sphere. * * @param origin The origin of the ray * @param direction The direction of the ray * @param sphereCenter The coordinates of the center of the sphere * @param sphereRadius The radius of the sphere * @param point The intersection point for returning * @return true if there was an intersection, false if not */ public boolean raySphere(Point3d origin, Vector3d direction, float[] sphereCenter, float sphereRadius, Point3d point) { boolean ret_val = raySphere(origin.x, origin.y, origin.z, direction.x, direction.y, direction.z, sphereCenter, sphereRadius, wkPolygon); point.x = wkPolygon[0]; point.y = wkPolygon[1]; point.z = wkPolygon[2]; return ret_val; }
if(rayPolygonChecked(origin, direction, length,
/** * Compute the intersection point of the ray and a plane. Assumes that the * plane equation defines a unit normal in the coefficients a,b,c. If not, * weird things happen. * * @param origin The origin of the ray * @param direction The direction of the ray * @param plane The coefficients for the plane equation (ax + by + cz + d = 0) * @param point The intersection point for returning * @return true if there was an intersection, false if not */ public boolean rayPlane(Point3d origin, Vector3d direction, float[] plane, Point3d point) { boolean ret_val = rayPlane(origin.x, origin.y, origin.z, direction.x, direction.y, direction.z, plane, wkPolygon); point.x = wkPolygon[0]; point.y = wkPolygon[1]; point.z = wkPolygon[2]; return ret_val; }
throws IllegalArgumentException boolean ret_val = rayCylinder(origin.x, origin.y, origin.z, direction.x, direction.y, direction.z, axis,
if(rayPolygonChecked(origin, direction, length,
if(rayPolygonChecked(origin, direction, length,
if(rayPolygonChecked(origin, direction, length,
wkPolygon[8] = coords[i2]; if(rayPolygonChecked(origin, direction, length,
wkPolygon[11] = coords[i3]; if(rayPolygonChecked(origin, direction, length,