SilverScreen Solid Modeler

c_to_w

c_to_w

Previous topic Next topic  

c_to_w

Previous topic Next topic JavaScript is required for the print function  

SilverScreenAPI

 

void c_to_w ( SS_XYZ *p1, SS_XYZ *p2 )

 

SS_XYZ *p1;      // a C-space point

SS_XYZ *p2;      // a W-space point

 



Synopsis

#include "silver.h"

 

The c_to_w function converts a point from C-space to W-space coordinates.

 

Parameters

p1 is a pointer to a 3D point in construction-space (c-space) coordinates. p2 is a pointer to a 3D point in world-space (w-space) coordinates that is the c-space to w-space transformation of the input parameter p1.

 

Return Value

none; the result is stored into p2 .

 

Comments

w_to_c is the inverse of c_to_w .

 

See Also

w_to_c, w_to_p

 

Example

Note that the following

C / C++ Code

 

 c_to_w ( &p1,&q1 );

 c_to_w ( &p2,&q2 );

 ss_command ( "draw line %z %z", &q1, &q2 );

 

 

produces the yields the same result as:

C / C++ Code

 

 ss_command ( "draw line [%z] [%z]", &q1, &q2 );