Part 1 – Create a method in ‘Geom’ called ‘getNumPoints’ that counts the number of points in a Point or Line object.
Part 2 – Create a method in ‘Geom’ called ‘addPoint’ that adds a new point to a Line or Polygon object. Tip: This can be done by using the method ‘np.vstack’ from numpy that stacks one matrix (coords) on top of another (your new point). Add a method to ‘Point’ to override this method and return a string like: “Can't add a point to a point"
How can i do that?
1
Expert's answer
2012-11-26T08:05:34-0500
Unfortunately, your question requires a lot of work and cannot be done for free. Submit it with all requirements as an assignment to our control panel and we'll assist you.
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
"assignmentexpert.com" is professional group of people in Math subjects! They did assignments in very high level of mathematical modelling in the best quality. Thanks a lot
Comments
Leave a comment