Documentation ¶
Overview ¶
Squares are the components of a Matrix
Index ¶
- type Square
- func (sq Square) BottomLeft() (x, y float32)
- func (sq *Square) Connect() point.PointList
- func (sq *Square) Draw(canvas *drawing.Canvas)
- func (sq Square) Empty() bool
- func (sq Square) End() (x, y float32)
- func (sq Square) Origin() (x, y float32)
- func (sq Square) Partition() [2][2]Square
- func (sq *Square) String() string
- func (sq Square) TopRight() (x, y float32)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Square ¶
func (Square) BottomLeft ¶
BottomLeft Get the equivalent of (1,0) for this square
func (*Square) Draw ¶
Draw the square. Remember that the square should be ordered previously to make sure it prints in the intended order. Take a look at `github.com/Willyfrog/peano/matrix.Strategy` Interface
Click to show internal directories.
Click to hide internal directories.