Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Observation ¶
type Observation struct {
// contains filtered or unexported fields
}
Observation represents the pixel data of an observatory image. "." represents empty space, and "#" represents a galaxy.
func ParseImage ¶
func ParseImage(r io.Reader) (Observation, error)
func (Observation) Expand ¶
func (o Observation) Expand() Observation
Expand creates a new observation image where any rows or columns in the original image that contain no galaxies are doubled in size.
func (Observation) Height ¶
func (o Observation) Height() int
func (Observation) String ¶
func (o Observation) String() string
func (Observation) Width ¶
func (o Observation) Width() int
Click to show internal directories.
Click to hide internal directories.