point

SVG object drag from centre

All, Am working on an SVG application that requires an object to be moved from one location to another. I have implemented drag and drop, however, upon mousedown, I want the cursor to 'grab' the object from the centre of that object. I also want to predefine that centre point. As an example, if there is a circle, when the user clicks ...

Line x and y n-intercept point / C++

Can someone please help me. I understand the equation of a line and how to solve for the zero intercept on paper, but I have trouble converting it to code. More specifically, I need to calculate the point at which a line intercepts any given X or Y coordinate with two different functions... double CalcLineYIntercept(LINE *line, double y...