summaryrefslogtreecommitdiff
path: root/def.go
diff options
context:
space:
mode:
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