Documentation
¶
Index ¶
- func ConstC(val float64) func(float64, float64) float64
- func KDev(devProcent float64) float64
- func LineRand(min, max float64) func() float64
- func LinearLifeTime(a, b float64) func(point Point) float64
- func NewAttrFs() map[string]AttrF
- func NormRand(center, devPercent float64) func() float64
- func RandomInCirc(R float64) func() V2
- func RandomOnSide(sideOrt V2, wide float64) func() V2
- func SinLifeTime(med, dev, period float64) func(p Point) float64
- func SinMaxTime(med, dev, periods float64) func(p Point) float64
- type AttrF
- type Flow
- type Params
- type Point
- type SpawnPosF
- type SpriteDrawerParams
- type VelocityF
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func KDev ¶
Возвращает коэффициент нормальной дистрибуций сигма в процентах devProcent 68% попадут в (100-devProcent, 100+devProcent) 95% попадут в (100-2*devProcent, 100+2*devProcent) Отклонения больше 3 сигма ограничиваются
func LinearLifeTime ¶
func RandomInCirc ¶
func RandomInCirc(R float64) func() V2
func RandomOnSide ¶
func RandomOnSide(sideOrt V2, wide float64) func() V2
func SinLifeTime ¶
func SinMaxTime ¶
Types ¶
type Params ¶
type SpriteDrawerParams ¶
type SpriteDrawerParams struct { Sprite *graph.Sprite CycleType int DoRandomLine bool FPS float64 Layer int }
func (SpriteDrawerParams) New ¶
func (params SpriteDrawerParams) New() updDrawPointer
Click to show internal directories.
Click to hide internal directories.