bias

package
v0.0.0-...-d7572e3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 14, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bias

type Bias [3]float64

func MakeBiasByProgress

func MakeBiasByProgress(ft [3]int64, sec float64, l float64) Bias

func NewByFaction

func NewByFaction(ft factiontype.FactionType, l float64) Bias

func NewByRGB

func NewByRGB(r, g, b uint8) Bias

func (Bias) AbsSum

func (bs Bias) AbsSum() float64

func (Bias) Add

func (bs Bias) Add(other Bias) Bias

func (Bias) F42String

func (bs Bias) F42String() string

func (Bias) FactionColor

func (bs Bias) FactionColor() htmlcolors.Color24

func (Bias) FormatString

func (bs Bias) FormatString(format string) string

func (Bias) Idiv

func (bs Bias) Idiv(other float64) Bias

func (Bias) IntString

func (bs Bias) IntString() string

func (Bias) MakeAbsSumTo

func (bs Bias) MakeAbsSumTo(l float64) Bias

func (Bias) NearFaction

func (bs Bias) NearFaction() factiontype.FactionType

func (Bias) Neg

func (bs Bias) Neg() Bias

func (Bias) RotateLeft

func (bs Bias) RotateLeft() Bias

func (Bias) RotateRight

func (bs Bias) RotateRight() Bias

func (Bias) SelectSkill

func (bs Bias) SelectSkill(i int) float64

func (Bias) String

func (bs Bias) String() string

func (Bias) Sub

func (bs Bias) Sub(other Bias) Bias

func (Bias) ToColor24

func (bs Bias) ToColor24() htmlcolors.Color24

func (Bias) ToHTMLColorString

func (bs Bias) ToHTMLColorString() string

func (Bias) ToRGB

func (bs Bias) ToRGB() (uint8, uint8, uint8)

func (Bias) ToRGBList

func (bs Bias) ToRGBList() [3]uint8

func (Bias) ToRGBString

func (bs Bias) ToRGBString() string

func (Bias) Unsigned

func (bs Bias) Unsigned(other Bias) Bias

type BiasList

type BiasList []Bias

func (BiasList) Len

func (bl BiasList) Len() int

func (BiasList) Less

func (bl BiasList) Less(i, j int) bool

func (BiasList) Swap

func (bl BiasList) Swap(i, j int)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL