I was trying to solve a problem for several days for a bug, that involved getting a new point when a move related function. Problem start when I tried to move the Valve together with the connected features.
Ideally, I want to keep the ratio and the distance of the text from the line, and calculate new orientation based on the slope of the line, but the existing function didn't that.
Ideally, I want to keep the ratio and the distance of the text from the line, and calculate new orientation based on the slope of the line, but the existing function didn't that.
I didn't know it is so complex to begin with. After a few attempts, I decided to consult my indian programmer. I'm impressed that they still remember the formula I learned in school. My problem involved digging my head for several old school lesson for math: distance (sqr((x2-x1)^2+(y2-y1)^2)), slope(m=(y1-y2)/(x1-x2), point(y=mx+c),trigonometry(sin,cos,tan), quadratic formula (ax2+bx+c=0) and linear formula (m1*m2=-1 for pependicular).
This equation below is just a subset of the works.
1 comment:
what in the world are you doing brian? how come you need to calculate what looks like very complicated math solution to the uniniated? hahaha
Or is it just simple SPM Add Maths? hahahaha
Can't remember anything from add maths man...
Post a Comment