# CS380:Lab01

From IPRE Wiki

# Lab 1: CS380 Androids Design and Practice

- Read Calico Lua
- Write Lua functions to do the following:
- Compute the distance between two 2D points (where you represent "point" however you wish)

- Distance between (0, 0) and (0, 100)
- Distance between (0, 0) and (100, 0)
- Distance between (0, 0) and (100, 100)
- Distance between (54, 38) and (16, 85)

- If a point was at location (150, 150) and you wanted to rotate it 10 degrees counter-clockwise about the origin, where would it then be?
- If a point was at location (150, 150) and you wanted to rotate it 10 degrees counter-clockwise about (70, 50), where would it then be?
- If a body is moving continuously between two points, figure out where it would be every .1 seconds:

- Given that it is starting at (0, 500) and moving to (300, 250)
- Given that it is starting at (100, 500) and moving to (300, 250)

- Write a 1-page paper describing the UPenn 2010 Robocup software
- How did the UPenn 2010 Robocup team do in the competition? How?