Message 1 of 2
Line.project returns a point that is not on the line.

Not applicable
09-13-2021
06:43 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have a similar function in my code and I assume it will always return 0 - since <p> is on <line>- , but that is not always the case.
can someone help me understand what I am missing.
double func(Line line)
{
// line is unbounded
XYZ p = line.Project(new XYZ(0, 0, 0)).XYZ;
return line.Distance(p);
}
Thank you.