-
Notifications
You must be signed in to change notification settings - Fork 1
Shape Class
wang429 edited this page Oct 31, 2011
·
10 revisions
Provides basic implementation for the shape of an object and modifying it. Array refers to the std::vector class. Vector refers to the Framework class representing vertices in (x,y) format.
Takes in a Vector and an integer index as arguments. Inserts Vector into array at index. Returns nothing.
Take in an integer index as an argument. Removes Vector at index from array. Returns nothing.
Takes in nothing as an argument. Returns the number of Vectors in the array
Takes in an integer index as an argument. Returns the reference to the Vector at index in the array.
Takes in an integer index as an argument. Returns the reference to the Vector at index in the array.
The array of Vectors representing the vertices of the shape.