This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using MonoTouch.Foundation; | |
| using MonoTouch.UIKit; | |
| namespace ColorControl { | |
| // The UIApplicationDelegate for the application. This class is responsible for launching the | |
| // User Interface of the application, as well as listening (and optionally responding) to |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Vector2D = {} | |
| function Vector2D:new(x, y) | |
| local object = { x = x, y = y } | |
| setmetatable(object, { __index = Vector2D }) | |
| return object | |
| end | |
| function Vector2D:copy() | |
| return Vector2D:new(self.x, self.y) |
NewerOlder