package
Version:
v1.0.4
Opens a new window with list of versions in this module.
Published: Apr 6, 2019
License: BSD-3-Clause
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 2
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.