10.09.2011, 16:07
Hi, I was wondering if it's possible to make a function (or find one), which could check whether a point is in an area of a shape with n corners, so it'd be universal for checking shapes that are 4+ cornered. It should also work with 3D coordinates. I was doing some research about this and found this formula on Wikipedia
If we can calculate the volume, I think we can check if a point is in a shape using this formula, but I don't know how.
Any ideas?
Any volumetric sweep(calculus required) | h = any dimension of the figure,A(h) = area of the cross-sections perpendicular to h described as a function of the position along h.a and b are the limits of integration for the volumetric sweep.(This will work for any figure if its cross-sectional area can be determined from h). |
Any ideas?