Documentation ¶
Index ¶
- func Abs[N Numeric](x N) (zero N)
- func Any[T any](arr []T, f func(T) bool) (ind int, ok bool)
- func Clamp[N Numeric](val, lower, upper N) (res N)
- func RangeClamp[N constraints.Integer](val, a, b N) N
- func ReadPipe() (res []string)
- func SameSign[N Numeric](a, b N) bool
- func SmartClamp[I constraints.Integer](a, b I) I
- type Numeric
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RangeClamp ¶
func RangeClamp[N constraints.Integer](val, a, b N) N
func SmartClamp ¶
func SmartClamp[I constraints.Integer](a, b I) I
Types ¶
Click to show internal directories.
Click to hide internal directories.