import "fyne.io/fyne/v2"
  

Usage

type Delta

  type Delta struct {
	DX, DY float32
}
  

Delta is a generic X, Y coordinate, size or movement representation.

func NewDelta

  func NewDelta(dx float32, dy float32) Delta
  

NewDelta returns a newly allocated [Delta] representing a movement in the X and Y axis.

func (Delta) Components

  func (v Delta) Components() (float32, float32)
  

Components returns the X and Y elements of v.

func (Delta) IsZero

  func (v Delta) IsZero() bool
  

IsZero returns whether the Position is at the zero-point.