Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FloatToFloat ¶
============================================================================ Floats ============================================================================
func ComposeFloat ¶
func ComposeFloat(f2fs ...FloatToFloat) FloatToFloat
func Cos ¶
func Cos(amplitude, frequency float64) FloatToFloat
func LinearFloatMapping ¶
func LinearFloatMapping(fromMin, fromMax, toMin, toMax float64) FloatToFloat
func Sin ¶
func Sin(amplitude, frequency float64) FloatToFloat
func (FloatToFloat) Add ¶
func (v1tov1 FloatToFloat) Add(other FloatToFloat) FloatToFloat
func (FloatToFloat) Multiply ¶
func (v1tov1 FloatToFloat) Multiply(other FloatToFloat) FloatToFloat
func (FloatToFloat) Scale ¶
func (v1tov1 FloatToFloat) Scale(other float64) FloatToFloat
func (FloatToFloat) Sub ¶
func (v1tov1 FloatToFloat) Sub(other FloatToFloat) FloatToFloat
type FloatToVec2 ¶
func LinearVector2Mapping ¶
func LinearVector2Mapping(fromMin, fromMax float64, toMin, toMax vector2.Float64) FloatToVec2
func (FloatToVec2) Add ¶
func (v1tov2 FloatToVec2) Add(other FloatToVec2) FloatToVec2
func (FloatToVec2) Sub ¶
func (v1tov2 FloatToVec2) Sub(other FloatToVec2) FloatToVec2
type FloatToVec3 ¶
func LinearVector3Mapping ¶
func LinearVector3Mapping(fromMin, fromMax float64, toMin, toMax vector3.Float64) FloatToVec3
func (FloatToVec3) Add ¶
func (v1tov3 FloatToVec3) Add(other FloatToVec3) FloatToVec3
func (FloatToVec3) Sub ¶
func (v1tov3 FloatToVec3) Sub(other FloatToVec3) FloatToVec3
type Vec2ToFloat ¶
============================================================================ Vector 2 ============================================================================
func (Vec2ToFloat) Add ¶
func (v2tov1 Vec2ToFloat) Add(other Vec2ToFloat) Vec2ToFloat
func (Vec2ToFloat) Multiply ¶
func (v2tov1 Vec2ToFloat) Multiply(other Vec2ToFloat) Vec2ToFloat
func (Vec2ToFloat) Scale ¶
func (v2tov1 Vec2ToFloat) Scale(other float64) Vec2ToFloat
func (Vec2ToFloat) Sub ¶
func (v2tov1 Vec2ToFloat) Sub(other Vec2ToFloat) Vec2ToFloat
type Vec2ToVec2 ¶
func ComposeVec2 ¶
func ComposeVec2(f2fs ...Vec2ToVec2) Vec2ToVec2
func (Vec2ToVec2) Add ¶
func (v2tov2 Vec2ToVec2) Add(other Vec2ToVec2) Vec2ToVec2
func (Vec2ToVec2) Sub ¶
func (v2tov2 Vec2ToVec2) Sub(other Vec2ToVec2) Vec2ToVec2
type Vec2ToVec3 ¶
func (Vec2ToVec3) Add ¶
func (v2tov3 Vec2ToVec3) Add(other Vec2ToVec3) Vec2ToVec3
func (Vec2ToVec3) Sub ¶
func (v2tov3 Vec2ToVec3) Sub(other Vec2ToVec3) Vec2ToVec3
type Vec3ToFloat ¶
============================================================================ Vector 3 ============================================================================
func AverageVec3ToFloat ¶
func AverageVec3ToFloat(funcs ...Vec3ToFloat) Vec3ToFloat
func SumVec3ToFloat ¶
func SumVec3ToFloat(v32fs ...Vec3ToFloat) Vec3ToFloat
func (Vec3ToFloat) Add ¶
func (v3tov1 Vec3ToFloat) Add(other Vec3ToFloat) Vec3ToFloat
func (Vec3ToFloat) Multiply ¶
func (v3tov1 Vec3ToFloat) Multiply(other Vec3ToFloat) Vec3ToFloat
func (Vec3ToFloat) Scale ¶
func (v3tov1 Vec3ToFloat) Scale(other float64) Vec3ToFloat
func (Vec3ToFloat) Sub ¶
func (v3tov1 Vec3ToFloat) Sub(other Vec3ToFloat) Vec3ToFloat
type Vec3ToVec2 ¶
func AverageVec3ToVec2 ¶
func AverageVec3ToVec2(funcs ...Vec3ToVec2) Vec3ToVec2
func (Vec3ToVec2) Add ¶
func (v3tov2 Vec3ToVec2) Add(other Vec3ToVec2) Vec3ToVec2
func (Vec3ToVec2) Sub ¶
func (v3tov2 Vec3ToVec2) Sub(other Vec3ToVec2) Vec3ToVec2
type Vec3ToVec3 ¶
func AverageVec3ToVec3 ¶
func AverageVec3ToVec3(funcs ...Vec3ToVec3) Vec3ToVec3
func ComposeVec3 ¶
func ComposeVec3(f2fs ...Vec3ToVec3) Vec3ToVec3
func (Vec3ToVec3) Add ¶
func (v3tov3 Vec3ToVec3) Add(other Vec3ToVec3) Vec3ToVec3
func (Vec3ToVec3) Sub ¶
func (v3tov3 Vec3ToVec3) Sub(other Vec3ToVec3) Vec3ToVec3
Click to show internal directories.
Click to hide internal directories.