diff options
Diffstat (limited to 'def.go')
-rw-r--r-- | def.go | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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 |