func (lc *LerpPosition) SetIsEnabled(isEnabled bool) {
	lc.isEnabled = isEnabled
}
SetIsEnabled sets if enabled or not
package common
import (
	"time"
)
type LerpPosition struct {
	start         time.Time
	startPosition *Vector
	duration      time.Duration
	endPosition   *Vector
	endFunc       func()
	isEndFuncSet  bool
	isDestroyed   bool
	isEnabled     bool
}
func (lc *LerpPosition) Lerp() (x float64, y float64) {
	if !lc.isEnabled {
		return lc.endPosition.X, lc.endPosition.Y
	}
	if lc.start.Add(lc.duration).Before(time.Now()) {
		lc.isEnabled = false
		return lc.endPosition.X, lc.endPosition.Y
	}
	elapsed := time.Since(lc.start).Nanoseconds()
	destNano := lc.start.Add(lc.duration).Sub(lc.start).Nanoseconds()
	t := float64(float64(elapsed) / float64(destNano))
	x = (1-t)*lc.startPosition.X + t*lc.endPosition.X
	y = (1-t)*lc.startPosition.Y + t*lc.endPosition.Y
	return
}
func (lc *LerpPosition) IsEnabled() bool {
	return lc.isEnabled
}