Structural Informatics Group (SIG) logo
Home | Projects | Demos | Downloads | Publications | Local Info | About Us | New site
Go to the first, previous, next, last section, table of contents.

:SCALE

source files: [xc]tfm.[ch]

SYNTAX

(SEND <tfm> :SCALE      <x> <y> <z>                              )
(SEND <tfm> :SCALE      <x> <y> <z> :ORIGIN             '(1 0 0) )
(SEND <tfm> :SCALE      <x> <y> <z> :TRANSFORMED-ORIGIN '(1 0 0) )
                                                                 
(SEND <tfm> :SCALE-PRE  <x> <y> <z>                              )
(SEND <tfm> :SCALE-PRE  <x> <y> <z> :ORIGIN             '(1 0 0) )
(SEND <tfm> :SCALE-PRE  <x> <y> <z> :TRANSFORMED-ORIGIN '(1 0 0) )
                                                                 
(SEND <tfm> :SCALE-POST <x> <y> <z>                              )
(SEND <tfm> :SCALE-POST <x> <y> <z> :ORIGIN             '(1 0 0) )
(SEND <tfm> :SCALE-POST <x> <y> <z> :TRANSFORMED-ORIGIN '(1 0 0) )

DESCRIPTION

The first form simply sets transform <tfm> to scale (shrink/grow) things by the x, y and z factors.

The second form is similar to the first, but the expansion is done around the given point instead of the origin of the coordinate system.

The third form is like the second, but the given origin is transformed by the initial value of the transform before being applied.

The last six forms differ from the first three only in that the computed transform, instead of replacing the original one, is pre- or post-multiplied with it to yield the replacement value.

All the numeric parameters may be either fixnums or floats, in any combination.


Go to the first, previous, next, last section, table of contents.