Documentation ¶ Index ¶ type Point type Sphere func NewSphere() *Sphere func (s *Sphere) EncodeJPEG(size int, quality int, writer io.Writer) error func (s *Sphere) EncodePNG(size int, writer io.Writer) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Point ¶ type Point struct { Latitude float64 `json:"latitude"` // The latitude of the point. Longitude float64 `json:"longitude"` // The longitude of the point. } Point is the simple model for a location on the surface of a sphere. type Sphere ¶ type Sphere struct { *globe.Globe } func NewSphere ¶ func NewSphere() *Sphere func (*Sphere) EncodeJPEG ¶ func (s *Sphere) EncodeJPEG(size int, quality int, writer io.Writer) error func (*Sphere) EncodePNG ¶ func (s *Sphere) EncodePNG(size int, writer io.Writer) error Source Files ¶ View all Source files point.gosphere.go Click to show internal directories. Click to hide internal directories.