(38 lines)
1 '\" t2 .\" Copyright (c) 2025 Bruce Hill3 .\" All rights reserved.4 .\"5 .TH Num.mix 3 2025-11-29 "Tomo man-pages"6 .SH NAME7 Num.mix \- mix two numbers by an amount8 .SH LIBRARY9 Tomo Standard Library10 .SH SYNOPSIS11 .nf12 .BI Num.mix\ :\ func(amount:\ Num,\ x:\ Num,\ y:\ Num\ ->\ Num)13 .fi14 .SH DESCRIPTION15 Interpolates between two numbers based on a given amount.18 .SH ARGUMENTS20 .TS21 allbox;22 lb lb lbx23 l l l.24 Name Type Description25 amount Num The interpolation factor (between \fB0\fR and \fB1\fR).26 x Num The starting number.27 y Num The ending number.28 .TE29 .SH RETURN30 The interpolated number between `x` and `y` based on `amount`.32 .SH EXAMPLES33 .EX34 assert (0.5).mix(10, 20) == 1535 assert (0.25).mix(10, 20) == 12.536 .EE37 .SH SEE ALSO38 .BR Tomo-Num (3)