Category Creo Parametric TOOLKIT fundamentals, Object ProMatrix

Function ProMatrixInit


Description
Constructs the transformation matrix from the specified three vectors and the origin.
Synopsis
#include <ProAsmcomppath.h>
ProErrorProMatrixInit(
ProVector x_vector
/* (In)
The X-axis vector, defined as (X, Y, Z)
*/
ProVector y_vector
/* (In)
The Y-axis vector, defined as (X, Y, Z)
*/
ProVector z_vector
/* (In)
The Z-axis vector, defined as (X, Y, Z)
*/
ProPoint3d origin
/* (In)
The origin point, defined as (X, Y, Z)
*/
ProMatrix matrix
/* (Out)
The transformation matrix
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully constructed the matrix.
PRO_TK_BAD_INPUTSOne or more of the input arguments are invalid.

Manual References:

  1. Pro/DEVELOP to Creo Toolkit Function Mapping: Equivalent Pro/DEVELOP Functions
  2. Core: Coordinate Systems and Transformations: Transforming to Coordinate System Datum Coordinates

Sample Code References:

  1. pt_examples ( TestAnalysisSrfCurve.c )
  2. pt_examples ( TestAnimation.c )
  3. pt_examples ( TestInterface.c )
  4. pt_examples ( TestExtrude.c )
  5. pt_examples ( TestDrwView.c )
  6. pt_examples ( UtilSect.c )
  7. pt_userguide ( UgDwgtableExamples.c )
  8. pt_userguide ( UgXsecMassProps.c )