diff options
| author | Kurt Jung <kurt.w.jung@code.google.com> | 2014-10-28 07:13:31 -0400 |
|---|---|---|
| committer | Kurt Jung <kurt.w.jung@code.google.com> | 2014-10-28 07:13:31 -0400 |
| commit | 030943ab81a363349e2218650ed1ef1d39c2d7e3 (patch) | |
| tree | f7ced6d53d6eea5f83017cfc427a4c41b9edfe53 /def.go | |
| parent | 052c886766c341b3c4222b514c9b7bb496fe465e (diff) | |
Robert Lillack's Beziergon function with example. Corrections to curve argument names.
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 |
