Back to godoc.org

Package util

v0.0.0-...-d3d8c0c
Latest Go to latest

The latest major version is .

Published: May 8, 2017 | License: MIT | Module: github.com/kidoman/embd

Overview

Package util contains utility functions.

Index

func Map

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)
Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier