1vpScale(3) Library Functions Manual vpScale(3)
2
3
4
6 vpScale - multiply the current transformation matrix by a scaling
7 matrix
8
10 #include <volpack.h>
11
12 vpResult
13 vpScale(vpc, sx, sy, sz)
14 vpContext *vpc;
15 double sx.FA double sy.FA double sz.FE
17 vpc VolPack context from vpCreateContext.
18 sx Scale factor for the X dimension.
19 sy Scale factor for the Y dimension.
20 sz Scale factor for the Z dimension.
22 vpScale is used to multiply the current transformation matrix by a
23 4-by-4 scaling matrix. The arguments specify independent scale factors
24 for each of the three cartesian axes. The scaling matrix is:
25 sx 0 0 0
26 0 sy 0 0
27 0 0 sz 0
28 0 0 0 1 Use vpCurrentMatrix to set the current transformation
29 matrix. By default, the scaling matrix is post-multiplied (M = M*S
30 where M is the current matrix and S is the scaling matrix). The
31 VP_CONCAT_MODE option to vpSeti can be used to select pre-multiplica‐
32 tion.
34 The current matrix concatenation parameters can be retrieved with the
35 following state variable codes (see vpGeti(3)): VP_CURRENT_MATRIX,
36 VP_CONCAT_MODE.
38 The return value is always VP_OK.
40 VolPack(3), vpCreateContext(3), vpCurrentMatrix(3)
41
42
43
44VolPack vpScale(3)