previous | start | next

## Graphics Structures (Summary)

Name | Purpose
`Point(x, y)` | Constructs a point at location (x, y)
`p.get_x()` | Returns the x-coordinate of a point `p`
`p.get_y()` | Returns the y-coordinate of a point `p`
`p.move(dx, dy)` | Moves point by by (`dx`, `dy`)
Name | Purpose
`Circle(p, r)` | Constructs a circle with center `p` and radius `r`
`c.get_center()` | Returns the center point of a circle `c`
`c.get_radius()` | Returns the radius of a circle `c`.
`c.move(dx, dy)` | Moves circle `c` by (`dx`, `dy`)
Name | Purpose
`Line(p, q)` | Constructs a line joining points `p` and `q`
`l.get_start()` | Returns the starting point of line `l`
`l.get_end()` | Returns the end point of line `l`
`l.move(dx, dy)` | Moves line `l` by (`dx`, `dy`)
Name | Purpose
`Message(p, s)` | Constructs a message with starting point `p` and text string `s`
`Message(p, x)` | Constructs a message with starting point `p` and label equal to the number `x`
`m.get_start()` | Returns the starting point of message `m`.
`m.get_text()` | Gets the text string message `m`
`m.move(dx, dy)` | Moves message `m` by (`dx`, `dy`)

previous | start | next