maths

package
Version: v0.0.0-...-1b60a0e Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package maths contains math utility functions.

Index

Constants

View Source
const (
	// Epsilon is a small quantity that can be used to determine
	// if two floating point numbers are nearly equal.
	Epsilon float64 = 0.00001
)

Variables

This section is empty.

Functions

func Float64Equals

func Float64Equals(a, b, epsilon float64) bool

Float64Equals returns true if the passed float64 values are equal. The two passed float64 values are considered equal if the absolute values of their difference is less than the passed epsilon.

func ToDegrees

func ToDegrees(radians float64) float64

ToDegrees returns the conversion of the passed radian value into degrees.

func ToRadians

func ToRadians(degrees float64) float64

ToRadians returns the conversion of the passed degree value into radians.

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

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