package
Version:
v0.34.0
Opens a new window with list of versions in this module.
Published: Jul 20, 2025
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
¶
func Clamp[T Number](x, min, max T) T
Clamp limits the value x to the range [min, max].
Distance returns the distance between (x1, y1) and (x2, y2).
Lerp computes the linear interpolation between a and b.
The parameter t should be in the range 0 to 1.
Number describes any numeric type in Go.
Includes signed integers, unsigned integers, and floating-point types.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.