util

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2020 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clamp

func Clamp(value float64, min float64, max float64) float64

Clamp restricts value between min and max

func Map

func Map(value, inFrom, inTo, outFrom, outTo float64) float64

Map maps an input value from interval [inFrom, inTo] to [outFrom, outTo]. Input value is clamped to input interval.

Types

This section is empty.

Jump to

Keyboard shortcuts

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