[osg-users] Parameter "ratio" in osgUtil::LineSegmentIntersector::Intersection

Andreas Goebel a-goebel at gmx.de
Tue Sep 30 00:40:43 PDT 2008


Paul Melis schrieb:
> Andreas Goebel wrote:
>>
>> What is that ratio-parameter expressing? May I assume that points 
>> which are very close to each other do have a ratio that is very close?
>> I guess that the other direction is not true: Points with a close 
>> ratio might be apart.
> My impression so far has been that 'ratio' is the parameter more 
> commonly named 't' when talking about a parametric line P, i.e.
> P(t) = segment_start + t * (segment_end - segment_start)
>
> Could be wrong though...
> Paul
Reading more in the code I think so too. That´s good, so t is unique, 
and I can simply test t against epsilon.

Thanks,

Andreas




More information about the osg-users mailing list