package
Version:
v1.0.1
Opens a new window with list of versions in this module.
Published: Oct 30, 2018
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Span struct {
Min, Max float32
}
Span represents an interval.
Abs return the absolute of the given span.
Add 2 span togheter
[a, b] + [c, d] = [a+c, b+d]
Mul multiply this these 2 span togheter
[a, b] * [c, d] = [min(ac, ad, bc, bd), max(ac, ad, bc, bd)]
Sub 2 span togheter
[a, b] - [c, d] = [a-c, b-d]
Source Files
¶
Click to show internal directories.
Click to hide internal directories.