I am working on an iPhone application and I am trying to do something related to line collision detection. I use the slope of the line and check if the coordinates of the circle are sufficient for the equation y = mx + b. But, with the current origin (0,0) in the upper left corner, it is a pain to get a slope. In any case, can I convert the coordinates so that the origin is in the center of the screen?
thyrgle
source
share