geom.set.raydist

Syntax

f := geom.set.raydist(g,vpos,vray)

Get the distance from a point to the set along a ray.

Note the algorithm used is optimized under the assumption that many different positions will be calculated using the same ray direction. There is significant overhead each time a new ray direction is used, on the order of the number of polygons in the set. Optimize your FISH functions accordingly.

Returns:

f - the distance from vpos to the set along vray.

Arguments:

g - geometric set pointer

vpos - 3d vector position

vray - direction to project