Writing pure function for calculation of the cross-sectional thickness at a desired point in a randomly closed polygon. And finding coordinates of the two areas above and below of this closed polgon.
There will be two or three function one of them find cross-section thickness other will find coordinates.
Please check uploaded picture
Functions should be pure code (do not use any 3rd party component or etc)
You should add explanation for variables and for each operation steps.
Code can be as follow
Public Function Finding_Cross_Section_of_Polygon(X() as double, Y() as double) as double
'Cross section coordinates
Dim X1 as double 'First point x
Dim Y1 as double
Dim X2 as double
Dim Y2 as double
5 freelance ont fait une offre moyenne de 91 $ pour ce travail
I have a PhD degree in computational physics and extensive knowledge and experience with math, including geometry, and great programming experience in Visual Basic. I checked the problem and I confirm that I can do it.