overview | basic concepts | gops | gprims | animation | rendering | math | index

geometric operations


blocking constructs | transformations | cameras | attributes | light sources

Transformations

The transformation matrix in the current graphics state is pre-multiplied by all transformation gops with the exception of transform. This means that transformations are applied in the reverse order in which they are specified.

(scale x y z)
(scale vec3)

(translate x y z)
(translate vec3)

scale and translate perform non-uniform scaling and translation along the x, y, and z axes. Each has two forms: one which takes 3 reals and one which takes a vec3 as input. In both cases, both forms are equivalent.

(uscale s)

uscale performs a uniform scale along x, y and z by an amount s.

(rotate angle axis)

rotate specifies a rotation of angle degrees about an arbitrary axis. axis is a vec3.

(transform m)
(concat-transform m)

transform replaces the transformation matrix in the current graphics state with the 4x4 transformation matrix stored in m. concat-transform pre-multiples the transformation matrix in the current graphics state by m.

(ctm)

Returns a mat4 corresponding to the transformation matrix in the current graphics state.


AL: The Animation Language is Copyright © 1995, Stephen F. May

Last updated: 11/20/95 / Steve May ( smay@cgrg.ohio-state.edu )
Any comments or suggestions appreciated.