Previous Next Up Title Contents Index Functions Index Top Library

BUILD TRANSFORMATION MATRIX 3

PBUILD_TRAN_MATRIX3


CALL SEQUENCE

void pbuild_tran_matrix3(
)

TYPES

typedef struct {
	Pfloat 	x;	/* x coordinate	*/
	Pfloat 	y;	/* y coordinate	*/
	Pfloat 	z;	/* z coordinate	*/
} Ppoint3;

typedef struct {
	Pfloat 	delta_x;	/* delta x	*/	Pfloat 	delta_y;	/* delta y	*/
	Pfloat 	delta_z;	/* delta z	*/
} Pvec3;

typedef Pfloat Pmatrix3[4][4];

PHIGS STATE

(PHOP, *, *, *).

EFFECT

Returns a homogeneous 4 x 4 matrix to be used for a 3D transformation which includes:

- scaling scale

- rotation in x x_angle

- rotation in y y_angle

- rotation in z z_angle

- translation shift

The returned matrix can be used as the transformation matrix for the SET LOCAL TRANSFORMATION MATRIX 3, SET GLOBAL TRANSFORMATION MATRIX 3 and similar functions.

ERRORS

2
Ignoring function, function requires state (PHOP, *,*,*)

SEE ALSO

set global transformation 3, set local transformation 3, translate 3, scale 3, rotate x, rotate y, rotate z, compose matrix 3, compose transformation matrix 3


Previous Next Up Title Contents Index Functions Index Top Library