SilverScreen Solid Modeler

tm_transform

tm_transform

Previous topic Next topic  

tm_transform

Previous topic Next topic JavaScript is required for the print function  

SilverScreenAPI

 

SS_XYZ *tm_transform ( SS_XYZ *p1, SS_XYZ *p2, MATRIX tm )

 

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

SS_XYZ *p2;       // address of 3D point to receive result

MATRIX  tm;       // transformation matrix

 

 




Synopsis

#include "silver.h"

 

The tm_transform function converts point p1 from the current coordinate system into another using the tranformation matrix tm . The resultant point is stored into p2 , which is also returned by tm_transform .

 

 

Parameters

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

 

 

Return Value

tm_transform returns p2 .