Documentation ¶
Index ¶
- Variables
- func AbsSq(c complex128) float64
- func Cross(a, b complex128) complex128
- func Ctof(c complex128) (float64, float64)
- func Dot(a, b complex128) complex128
- func Normalize(c complex128) complex128
- func Rot(n float64) complex128
- func UWave(ratio float64) float64
- func UnitVector(angle float64) complex128
- func Wave(ratio float64) float64
- type Rect
- func (r *Rect) CPos(anchor int) complex128
- func (r *Rect) Clone(oldAnchor, neWAnchor int) *Rect
- func (r *Rect) Contains(pos complex128) bool
- func (r *Rect) ContainsF(X, Y float64) bool
- func (r *Rect) Drive(anchor int) *Rect
- func (r *Rect) Intersects(rHs *Rect) bool
- func (r *Rect) Move(X, Y float64) *Rect
- func (r *Rect) NewTextBox(text string, anchor int) *TextBox
- func (r *Rect) Pos(anchor int) (float64, float64)
- func (r *Rect) RandPos() (float64, float64)
- func (r *Rect) Resize(diffX, diffY float64) *Rect
- func (r *Rect) Scale(scaleX, scaleY float64) *Rect
- func (r *Rect) Set(anchor int, X, Y, W, H float64)
- func (r *Rect) SetSize(w, h float64) *Rect
- func (r *Rect) Shift(x, y float64) *Rect
- func (r *Rect) Wraps(rHs *Rect) bool
- type TextBox
- type TextRow
- type Timer
- func (t *Timer) After(b int, f func(Timer))
- func (t *Timer) Continue(state string)
- func (t *Timer) Do(b, e int, f func(Timer)) (then Timer)
- func (t *Timer) IsLast() bool
- func (t *Timer) Loop(duration int, f func(Timer))
- func (t *Timer) Once(f func())
- func (t *Timer) Ratio() float64
- func (t *Timer) RatioTo(count int) float64
- func (t *Timer) Switch(state string)
- func (t *Timer) Update()
- type TimersMap
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultEmHeight = 12.0 DefaultEmWidth = 6.0 DefaultLineHeight = 1.3 )
Text Drawing Status
View Source
var ( // ErrSuccess represents successfully finished ErrSuccess = errors.New("successfully finished") )
Functions ¶
func Cross ¶
func Cross(a, b complex128) complex128
func Dot ¶
func Dot(a, b complex128) complex128
Types ¶
type Rect ¶
type Rect struct {
X, Y, W, H float64
// contains filtered or unexported fields
}
Rect is a simple rect
func (*Rect) CPos ¶
func (r *Rect) CPos(anchor int) complex128
func (*Rect) Contains ¶
func (r *Rect) Contains(pos complex128) bool
Contains reports it contains tHe point
func (*Rect) Intersects ¶
Intersects reports WHetHer tHe rects intersect.
Click to show internal directories.
Click to hide internal directories.