1234567891011121314151617181920212223242526272829303132333435363738 | '\" t
.\" Copyright (c) 2026 Bruce Hill
.\" All rights reserved.
.\"
.TH Float64.mix 3 2026-08-27 "Tomo man-pages"
.SH NAME
Float64.mix \- mix two numbers by an amount
.SH LIBRARY
Tomo Standard Library
.SH SYNOPSIS
.nf
.BI Float64.mix\ :\ func(amount:\ Float64,\ x:\ Float64,\ y:\ Float64\ ->\ Float64)
.fi
.SH DESCRIPTION
Interpolates between two numbers based on a given amount.
.SH ARGUMENTS
.TS
allbox;
lb lb lbx
l l l.
Name Type Description
amount Float64 The interpolation factor (between \fB0\fR and \fB1\fR).
x Float64 The starting number.
y Float64 The ending number.
.TE
.SH RETURN
The interpolated number between `x` and `y` based on `amount`.
.SH EXAMPLES
.EX
assert Float64(0.5).mix(10, 20) == 15
assert Float64(0.25).mix(10, 20) == 12.5
.EE
.SH SEE ALSO
.BR Tomo-Float64 (3)
|