Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X
I have a function for the calculation the distance between a point and a square.
See please the animation and the Mathcad sheet in attach.
My questions:
0. Do you know some references on this topic - an ellipse with not point-focuses but with circles etc?
1. Can the function Square be mote simple?
2. I need one more argument for the function Square - an angle alpha - the rotation of the square from 0 to 90 deg.
3. Help me to create the function Triangle (Rhombus, Rectangle, Ellipse, etc.) with same properties!
I need it for this... art
Not an exact solution, but this is close. I divide each line into segments and pick the closest of all the points. 4.0 and pdf attached.
Thanks DJF!
I will try to convert your solution to MC15 and create the function Square(x, y, alpha, p, xs, ys).
The function without alpha:
One simple example - a vertical offcut.
Wee need an angle alpha in the function OffCut!
A equilateral triangle
More correct function and animation:
An Ellipse with a circle, a square and a triangle as focuses: