bulia byak wrote:
Nathan,
recently I added a few small functions to nodepath.cpp that I needed for various path operations. They do things like finding the point closest to a given point on a given line (the line is assumed to go through the coordinate center and thus is given only by its tangent), distance from point to line, as well as converting from x/y coordinates to radial and back.
Yep, these functions will be moved into the geometry subsection. I'm currently replacing NRPoint with NR::Point, then I'll look at matrix, then paths.
I realize that these functions probably belong in a different file, and maybe even in your point class (or maybe they are already implemented somewhere, although I could not find them).
There are certainly implementations of the various things, they tend to be copied and pasted and changed slightly. My first aim is to replace the existing implementations with a unified set.
However I do not know much of C++ and thus cannot move them there by myself. If you could do that it would be nice, and reading your converted code might be my first tutorial in C++ :)
Yep, you're welcome to read through my code (look in libnr/nr-types.h for the NR::Point class) - you might even find some bugs :)
njh