Next: About this document Up: Programmer's Reference for the Previous: Colour Manipulation

Transforms


public  void  make_scale_transform(
    Real        sx,
    Real        sy,
    Real        sz,
    Transform   *transform )

Creates a scaling transform with separate scaling in each dimension. If the point (1.0, 1.0, 1.0) is transformed by the resulting transform, the result will be (sx, sy, sz).


public  void  make_translation_transform(
    Real        x_trans,
    Real        y_trans,
    Real        z_trans,
    Transform   *transform )

Creates a translation transform with separate translation in each dimension. Transforming the point ( 0.0, 0.0, 0.0 ) by the resulting transform will result in the point (x_trans, y_trans, z_trans).


public  void  make_rotation_transform(
    Real       radians,
    int        axis,
    Transform  *transform )

Creates a transform which achieves a rotation about one of the three axes, (X, Y, or Z).



Next: About this document Up: Programmer's Reference for the Previous: Colour Manipulation


david@pet.mni.mcgill.ca
Fri Feb 17 15:40:04 EST 1995