utils

package
v0.0.0-...-57775aa Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DegreesToRadians

func DegreesToRadians(degrees float64) float64

func EmptyInterval

func EmptyInterval(minValue float64, maxValue float64) *interval

func NewInterval

func NewInterval(minValue float64, maxValue float64) *interval

func RandomFloat64Interval

func RandomFloat64Interval(min float64, max float64) float64

func UniverseInterval

func UniverseInterval(minValue float64, maxValue float64) *interval

Types

type Interval

type Interval interface {
	Min() float64
	Max() float64
	Size() float64
	Contains(x float64) bool
	Surrounds(x float64) bool
	Clamp(x float64) float64
}

Jump to

Keyboard shortcuts

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