embd: github.com/kidoman/embd/util Index | Files

package util

import "github.com/kidoman/embd/util"

Package util contains utility functions.

Index

Package Files

map.go

func Map Uses

func Map(x, inmin, inmax, outmin, outmax int64) int64

Map re-maps a number from one range to another.

Example:

val := Map(angle, 0, 180, 1000, 2000)

Package util is imported by 18 packages. Updated 2016-07-16. Refresh now. Tools for package owners.