1vpTranslate(3)             Library Functions Manual             vpTranslate(3)
2
3
4

NAME

6       vpTranslate  - multiply the current transformation matrix by a transla‐
7       tion matrix
8

SYNOPSIS

10       #include <volpack.h>
11
12       vpResult
13       vpTranslate(vpc, tx, ty, tz)
14           vpContext *vpc;
15           double *tx, *ty, *tz;
16

ARGUMENTS

18       vpc    VolPack context from vpCreateContext.
19
20       tx     X component of translation vector.
21
22       ty     Y component of translation vector.
23
24       tz     Z component of translation vector.
25

DESCRIPTION

27       vpTranslate is used to multiply the current transformation matrix by  a
28       4-by-4 translation matrix.  The translation matrix is:   1   0   0  tx
29         0   1   0  ty
30         0   0   1  tz
31         0   0   0   1
32
33       Use  vpCurrentMatrix  to  set  the  current  transformation matrix.  By
34       default, the transformation matrix is post-multiplied (M = M*T where  M
35       is  the  current  matrix and T is the translation matrix).  The VP_CON‐
36       CAT_MODE option to vpSeti can be used to select pre-multiplication.
37

STATE VARIABLES

39       The current matrix concatenation parameters can be retrieved  with  the
40       following  state  variable  codes  (see  vpGeti(3)): VP_CURRENT_MATRIX,
41       VP_CONCAT_MODE.
42

ERRORS

44       The return value is always VP_OK.
45

SEE ALSO

47       VolPack(3), vpCreateContext(3), vpCurrentMatrix(3)
48
49
50
51VolPack                                                         vpTranslate(3)
Impressum