Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Surface ¶
Surface is a representation of a plateau upon which objects can traverse.
func New ¶
New creates a new Surface with a given upper-right boundary, represented via x and y coordinates, with a lower-left boundary of 0,0. This function will error if any of the upper-right boundaries are less than the lower-left ones.
func (*Surface) IsOutOfBounds ¶
IsOutOfBounds checks if a coordinate is out of bounds within a given surface.
type UpperBoundsError ¶
UpperBoundsError is an error that is returned whenever the plateau surface's upper boundaries are less than the lower boundaries defined within the plateau package; see plateau.lowerBoundX and plateau.lowerBoundY
func (*UpperBoundsError) Error ¶
func (o *UpperBoundsError) Error() string
Error returns a message containing which coordinate has been found to be invalid as an upper bound.