12 lines
258 B
Plaintext
12 lines
258 B
Plaintext
package geometry
|
|
import "math"
|
|
// Test functions
|
|
func add(a, b int) int { return a + b }
|
|
func (self *Point) Scale(factor float64) {
|
|
self.setX(self.x * factor)
|
|
self.setY(self.y * factor)
|
|
}
|
|
type Writer interface {
|
|
Write(p []byte) (n int, err os.Error)
|
|
}
|