interval

package
v0.0.0-...-d51f9a1 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interval

type Interval struct {
	Min, Max int
}

func Ivl

func Ivl(min, max int) Interval

func (Interval) Contains

func (x Interval) Contains(v int) bool

func (Interval) Empty

func (x Interval) Empty() bool

func (Interval) Overlaps

func (x Interval) Overlaps(y Interval) bool

func (Interval) Width

func (x Interval) Width() int

Jump to

Keyboard shortcuts

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