public class RayCastingSupport extends Object
| Constructor and Description | 
|---|
| RayCastingSupport() | 
| Modifier and Type | Method and Description | 
|---|---|
| static Position | intersectRayWithTerrain(Globe globe,
                       Vec4 origin,
                       Vec4 direction)Compute the intersection  Positionof the globe terrain with the ray starting 
 at origin in the given direction. | 
| static Position | intersectRayWithTerrain(Globe globe,
                       Vec4 origin,
                       Vec4 direction,
                       double sampleLength,
                       double precision)Compute the intersection  Positionof the globe terrain with the ray starting
 at origin in the given direction. | 
| static Vec4 | intersectSegmentWithTerrain(Globe globe,
                           Vec4 p1,
                           Vec4 p2)Compute the intersection  Vec4point of the globe terrain with a line segment
 defined between two points. | 
| static Vec4 | intersectSegmentWithTerrain(Globe globe,
                           Vec4 p1,
                           Vec4 p2,
                           double sampleLength,
                           double precision)Compute the intersection  Vec4point of the globe terrain with the a segment
 defined between two points. | 
public static Position intersectRayWithTerrain(Globe globe, Vec4 origin, Vec4 direction)
Position of the globe terrain with the ray starting 
 at origin in the given direction. Uses default sample length and result precision.globe - the globe to intersect with.origin - origin of the ray.direction - direction of the ray.Position found or null.public static Position intersectRayWithTerrain(Globe globe, Vec4 origin, Vec4 direction, double sampleLength, double precision)
Position of the globe terrain with the ray starting
 at origin in the given direction. Uses the given sample length and result precision.globe - the globe to intersect with.origin - origin of the ray.direction - direction of the ray.sampleLength - the sampling step length in meters.precision - the maximum sampling error in meters.Position found or null.public static Vec4 intersectSegmentWithTerrain(Globe globe, Vec4 p1, Vec4 p2)
Vec4 point of the globe terrain with a line segment
 defined between two points. Uses the default sample length and result precision.globe - the globe to intersect with.p1 - segment start point.p2 - segment end point.Vec4 point found or null.public static Vec4 intersectSegmentWithTerrain(Globe globe, Vec4 p1, Vec4 p2, double sampleLength, double precision)
Vec4 point of the globe terrain with the a segment
 defined between two points. Uses the given sample length and result precision.globe - the globe to intersect with.p1 - segment start point.p2 - segment end point.sampleLength - the sampling step length in meters.precision - the maximum sampling error in meters.Vec4 point found or null.