I have plotted a ship that is partially immersed in water.
With the following code, I calculated the area of the ship :
rectangle=polyshape([-12 -12 12 12],[-6 6 6 -6])
Now, I need to find the y coordinate of the centroid of the immersed volume
I only know the total value of the immersed volume is Vim = 34,14 m^3
How can I find the centroid ? I am guessing I need to use again the intersect method, but I don't see how
I hope my question is clear enough, thank you in advance