summaryrefslogtreecommitdiff
path: root/def.go
diff options
context:
space:
mode:
authorKurt Jung <kurt.w.jung@code.google.com>2014-10-28 07:13:31 -0400
committerKurt Jung <kurt.w.jung@code.google.com>2014-10-28 07:13:31 -0400
commit030943ab81a363349e2218650ed1ef1d39c2d7e3 (patch)
treef7ced6d53d6eea5f83017cfc427a4c41b9edfe53 /def.go
parent052c886766c341b3c4222b514c9b7bb496fe465e (diff)
Robert Lillack's Beziergon function with example. Corrections to curve argument names.
Diffstat (limited to 'def.go')
-rw-r--r--def.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/def.go b/def.go
index 6d12af3..47b399f 100644
--- a/def.go
+++ b/def.go
@@ -49,6 +49,11 @@ type PointType struct {
X, Y float64
}
+// XY returns the X and Y components of the receiver point.
+func (p PointType) XY() (float64, float64) {
+ return p.X, p.Y
+}
+
// ImageInfoType contains size, color and other information about an image
type ImageInfoType struct {
data []byte