[all] It works!

This commit is contained in:
Eryn Wells 2017-08-05 13:38:46 -07:00
parent dfa603012f
commit 8dcd0910f1
4 changed files with 73 additions and 66 deletions

View file

@ -26,6 +26,12 @@ public struct Point {
}
}
extension Point: CustomStringConvertible {
public var description: String {
return "(\(x), \(y))"
}
}
public struct Vector {
var dx: Float
var dy: Float
@ -39,3 +45,9 @@ public struct Vector {
self.dy = dy
}
}
extension Vector: CustomStringConvertible {
public var description: String {
return "(\(dx), \(dy))"
}
}