Documentation ¶
Overview ¶
package ms1 implements basic 1D math useful for 3D graphics applications. Functions in this package have their OpenGL equivalent which is usually of the same name.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Interp ¶
Interp performs the linear interpolation between x and y, mapping with a in interval [0,1]. This function is known as "mix" in OpenGL.
func Sign ¶
Sign returns -1, 0, or 1 for negative, zero or positive x argument, respectively, just like OpenGL's "sign" function.
func SmoothStep ¶
SmoothStep performs smooth cubic hermite interpolation between 0 and 1 when edge0 < x < edge1.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.