Handbook
Glossary
fit-aspect-ratio ( dim ratio fill -- fill' )
Vocabulary
images
.
viewer
.
scaling
.
private
Inputs
dim
an
object
ratio
an
object
fill
an
object
Outputs
fill'
an
object
Definition
USING:
kernel
math
sequences
;
IN:
images.viewer.scaling.private
::
fit-aspect-ratio
( dim ratio fill -- fill' )
{
fill
f
}
dim
first2
ratio
*
<
[
<reversed>
]
unless
;