Handbook
Glossary
fill-y-axis-by-aspect-ratio ( ratio x -- x' y' )
Vocabulary
images
.
viewer
.
scaling
.
private
Inputs
ratio
an
object
x
an
object
Outputs
x'
an
object
y'
an
object
Definition
USING:
kernel
math
math.functions
;
IN:
images.viewer.scaling.private
:
fill-y-axis-by-aspect-ratio
( ratio x -- x' y' )
[
swap
/f
round
]
keep
swap
;