SilverScreen Solid Modeler

tm_to_2d

tm_to_2d

Previous topic Next topic  

tm_to_2d

Previous topic Next topic JavaScript is required for the print function  

SilverScreenAPI

 

void tm_to_2d ( SS_XYZ *p1, SS_XYZ *p2, SS_XYZ *p3, MATRIX tm )

 

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

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

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

MATRIX  tm;       // transformation matrix to receive result

 

 




Synopsis

#include "silver.h"

 

The tm_to_2d function creates a 4x4 transformation matrix in tm that results from moving line segment p1-p2 to the x-axis (with p1 on the origin), and then rotating line segment p1-p3 onto the xy plane (holding p1-p2 fixed.

 

 

Parameters

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

 

 

Return Value

none.

 

 

See Also

tm_to_plus_x , tm_to_plus_z