mathutil

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2022 License: MIT Imports: 2 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AbsFloat added in v0.1.1

func AbsFloat[T constraints.Float](x T) T

func AbsInt added in v0.1.1

func AbsInt[T constraints.Integer](x T) T

func MaxFloat added in v0.1.1

func MaxFloat[T constraints.Float](x, y T) T

func MaxInt added in v0.1.1

func MaxInt[T constraints.Integer](x, y T) T

func MinFloat added in v0.1.1

func MinFloat[T constraints.Float](x, y T) T

func MinInt added in v0.1.1

func MinInt[T constraints.Integer](x, y T) T

func MinmaxFloat added in v0.1.1

func MinmaxFloat[T constraints.Float](x, y T) (min, max T)

func MinmaxInt added in v0.1.1

func MinmaxInt[T constraints.Integer](x, y T) (min, max T)

Types

type Real added in v0.1.1

type Real interface {
	constraints.Float | constraints.Integer
}

Jump to

Keyboard shortcuts

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