Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ViewFinder ¶
ViewFinder allows the user to zoom or move the view on the field
func (ViewFinder) RealToViewFinder ¶
func (vf ViewFinder) RealToViewFinder(input vect.Vect) (output pixel.Vec)
RealToViewFinder converts a set of real coordinates to coordinates on the screen
func (*ViewFinder) SetOffset ¶
func (vf *ViewFinder) SetOffset(offset pixel.Vec)
SetOffset sets an offset for viewing the field
func (*ViewFinder) SetScale ¶
func (vf *ViewFinder) SetScale(scale float64)
SetScale zooms in or out of the field
func (ViewFinder) ViewFinderToReal ¶
func (vf ViewFinder) ViewFinderToReal(input pixel.Vec) (output vect.Vect)
ViewFinderToReal converts a set of coordinates on the screen to real coordinates
Click to show internal directories.
Click to hide internal directories.