SilverScreen Solid Modeler

tm_to_plus_x

tm_to_plus_x

Previous topic Next topic  

tm_to_plus_x

Previous topic Next topic JavaScript is required for the print function  

SilverScreenAPI

 

void tm_to_plus_x ( SS_XYZ *p1, SS_XYZ *p2, MATRIX tm )

 

SS_XYZ *p1;       // address of a 3D point

SS_XYZ *p2;       // address of a 3D point

MATRIX  tm;       // transformation matrix

 

 




Synopsis

#include "silver.h"

 

The tm_to_plus_x function creates a 4x4 transformation matrix in tm that results from moving point p1 to the origin, and then rotating point p2 onto the positive x-axis (holding p1 fixed on the origin).

 

 

Parameters

p1 and p2 are both addresses of 3D points. tm is the address of a 4x4 array of doubles.

 

 

Return Value

none.

 

 

See Also

tm_to_plus_z, tm_to_2d