Answer to Question #19490 in Python for Zhandos

Question #19490
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.

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS