UF_MTX2_copy (查看源代码)
 
定义在: uf_mtx.h
 
概述
Copies the 2x2 matrix elements from the source matrix to the
destination matrix

返回
void

环境
内部和外部
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
void UF_MTX2_copy
(
const double mtx_src [ 4 ] ,
double mtx_dst [ 4 ]
)
const doublemtx_src [ 4 ] Input(输入)Source matrix
double (实数型)mtx_dst [ 4 ] Output(输出)Destination matrix mtx_dst = mtx_src

 


 
UF_MTX2_determinant (查看源代码)
 
定义在: uf_mtx.h
 
概述
Calculates the determinant of a 2 x 2 matrix.

返回
void

环境
内部和外部
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
void UF_MTX2_determinant
(
const double mtx [ 4 ] ,
double * determinant
)
const doublemtx [ 4 ] Input(输入)Matrix whose determinant in required
double * (实数型指针)determinantOutput(输出)Matrix determinant

 


 
UF_MTX2_identity (查看源代码)
 
定义在: uf_mtx.h
 
概述
Returns a 2 x 2 identity matrix.

返回
void

环境
内部和外部
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
void UF_MTX2_identity
(
double identity_mtx [ 4 ]
)
double (实数型)identity_mtx [ 4 ] Output(输出)Identity matrix

 


 
UF_MTX2_initialize (查看源代码)
 
定义在: uf_mtx.h
 
概述
Returns a matrix formed from two input vectors.

返回
Return value:
0 = Success (vectors define a valid matrix)
1 = Matrix cannot be defined

环境
内部和外部
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_MTX2_initialize
(
const double x_vec [ 2 ] ,
const double y_vec [ 2 ] ,
double mtx [ 4 ]
)
const doublex_vec [ 2 ] Input(输入)Vector for the X-direction of matrix
const doubley_vec [ 2 ] Input(输入)Vector for the Y-direction of matrix
double (实数型)mtx [ 4 ] Output(输出)Matrix

 


 
UF_MTX2_multiply (查看源代码)
 
定义在: uf_mtx.h
 
概述
Returns a 2x2 matrix product from two input matrices.

返回
void

环境
内部和外部
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
void UF_MTX2_multiply
(
const double mtx1 [ 4 ] ,
const double mtx2 [ 4 ] ,
double mtx_product [ 4 ]
)
const doublemtx1 [ 4 ] Input(输入)Matrix #1
const doublemtx2 [ 4 ] Input(输入)Matrix #2
double (实数型)mtx_product [ 4 ] Output(输出)Matrix product
mtx_product = mtx1 X mtx2

 


 
UF_MTX2_multiply_t (查看源代码)
 
定义在: uf_mtx.h
 
概述
Returns a 2x2 matrix product by transposing matrix #1 before
performing the multiplication.

返回
void

环境
内部和外部
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
void UF_MTX2_multiply_t
(
const double mtx1 [ 4 ] ,
const double mtx2 [ 4 ] ,
double mtx_product [ 4 ]
)
const doublemtx1 [ 4 ] Input(输入)Matrix #1 gets transposed before the
multiplication.
const doublemtx2 [ 4 ] Input(输入)Matrix #2
double (实数型)mtx_product [ 4 ] Output(输出)Matrix product
mtx_product = Transpose of mtx1 X mtx2

 


 
UF_MTX2_transpose (查看源代码)
 
定义在: uf_mtx.h
 
概述
Returns the transpose of a 2x2 matrix.

返回
void

环境
内部和外部
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
void UF_MTX2_transpose
(
const double mtx [ 4 ] ,
double transpose_mtx [ 4 ]
)
const doublemtx [ 4 ] Input(输入)Matrix to transpose
double (实数型)transpose_mtx [ 4 ] Output(输出)Transpose of the input matrix

 


 
UF_MTX2_vec_multiply (查看源代码)
 
定义在: uf_mtx.h
 
概述
Returns a 2D vector which is the product of a 2D vector and a 2x2
matrix.

返回
void

环境
内部和外部
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
void UF_MTX2_vec_multiply
(
const double vec [ 2 ] ,
const double mtx [ 4 ] ,
double vec_product [ 2 ]
)
const doublevec [ 2 ] Input(输入)Vector to multiply
const doublemtx [ 4 ] Input(输入)Matrix to multiply
double (实数型)vec_product [ 2 ] Output(输出)Product (a vector)
vec_product = vec X mtx

 


 
UF_MTX2_vec_multiply_t (查看源代码)
 
定义在: uf_mtx.h
 
概述
Returns a 2D vector which is the product of a 2D vector and a
transposed 2x2 matrix.

返回
void

环境
内部和外部
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
void UF_MTX2_vec_multiply_t
(
const double vec [ 2 ] ,
const double mtx [ 4 ] ,
double vec_product [ 2 ]
)
const doublevec [ 2 ] Input(输入)Vector to multiply
const doublemtx [ 4 ] Input(输入)Matrix to transpose and multiply
double (实数型)vec_product [ 2 ] Output(输出)Product (a vector)
vec_product = vec X transpose of mtx

 


 
UF_MTX2_x_vec (查看源代码)
 
定义在: uf_mtx.h
 
概述
Returns the X-direction vector of a 2x2 matrix.

返回
void

环境
内部和外部
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
void UF_MTX2_x_vec
(
const double mtx [ 4 ] ,
double x_vec [ 2 ]
)
const doublemtx [ 4 ] Input(输入)Matrix whose X-direction is required
double (实数型)x_vec [ 2 ] Output(输出)X-direction vector of the matrix

 


 
UF_MTX2_y_vec (查看源代码)
 
定义在: uf_mtx.h
 
概述
Returns the Y-direction vector of a 2x2 matrix.

返回
void

环境
内部和外部
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
void UF_MTX2_y_vec
(
const double mtx [ 4 ] ,
double y_vec [ 2 ]
)
const doublemtx [ 4 ] Input(输入)Matrix whose Y-direction is required
double (实数型)y_vec [ 2 ] Output(输出)Y-direction vector of the matrix

 


 
UF_MTX3_copy (查看源代码)
 
定义在: uf_mtx.h
 
概述
Copies the matrix elements from a source 3x3 matrix to a destination 3x3
matrix.

返回
void

环境
内部和外部
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
void UF_MTX3_copy
(
const double mtx_src [ 9 ] ,
double mtx_dst [ 9 ]
)
const doublemtx_src [ 9 ] Input(输入)Source matrix
double (实数型)mtx_dst [ 9 ] Output(输出)Destination matrix

 


 
UF_MTX3_determinant (查看源代码)
 
定义在: uf_mtx.h
 
概述
Calculates the determinant of a 3 x 3 matrix.

返回
void

环境
内部和外部
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
void UF_MTX3_determinant
(
const double mtx [ 9 ] ,
double * determinant
)
const doublemtx [ 9 ] Input(输入)Matrix whose determinant in required
double * (实数型指针)determinantOutput(输出)Matrix determinant

 


 
UF_MTX3_identity (查看源代码)
 
定义在: uf_mtx.h
 
概述
Returns a 3 x 3 identity matrix.

返回
void

环境
内部和外部
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
void UF_MTX3_identity
(
double identity_mtx [ 9 ]
)
double (实数型)identity_mtx [ 9 ] Output(输出)Identity Matrix

 


 
UF_MTX3_initialize (查看源代码)
 
定义在: uf_mtx.h
 
概述
Returns a 3x3 matrix formed from two input 3D vectors. The two
input vectors are normalized and the y-direction vector is made
orthogonal to the x-direction vector before taking the cross product
(x_vec X y_vec) to generate the z-direction vector.

返回
Return value:
0 = Success (vectors define a valid matrix)
1 = Matrix cannot be defined

环境
内部和外部
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_MTX3_initialize
(
const double x_vec [ 3 ] ,
const double y_vec [ 3 ] ,
double mtx [ 9 ]
)
const doublex_vec [ 3 ] Input(输入)Vector for the X-direction of matrix
const doubley_vec [ 3 ] Input(输入)Vector for the Y-direction of matrix
double (实数型)mtx [ 9 ] Output(输出)Matrix

 


 
UF_MTX3_initialize_x (查看源代码)
 
定义在: uf_mtx.h
 
概述
Returns a 3x3 matrix with the given X-direction vector and having
arbitrary Y- and Z-direction vectors.

返回
Returns 0 if the input vector is nonzero; returns 1
otherwise.

环境
内部和外部
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_MTX3_initialize_x
(
const double x_vec [ 3 ] ,
double mtx [ 9 ]
)
const doublex_vec [ 3 ] Input(输入)Vector for the X-direction of matrix
double (实数型)mtx [ 9 ] Output(输出)Matrix (3x3)

 


 
UF_MTX3_initialize_z (查看源代码)
 
定义在: uf_mtx.h
 
概述
Returns a 3x3 matrix with the given Z-direction vector and having
arbitrary X- and Y-direction vectors.

返回
Returns 0 if the input vector is nonzero;
returns 1 otherwise.

环境
内部和外部
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_MTX3_initialize_z
(
const double z_vec [ 3 ] ,
double mtx [ 9 ]
)
const doublez_vec [ 3 ] Input(输入)Vector for the Z-direction of matrix
double (实数型)mtx [ 9 ] Output(输出)Matrix (3x3)

 


 
UF_MTX3_mtx4 (查看源代码)
 
定义在: uf_mtx.h
 
概述
Converts a 3D matrix to a 4D matrix with a scale of 1.0 and a zero
translation vector.

返回
void

环境
内部和外部
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
void UF_MTX3_mtx4
(
const double mtx_3D [ 9 ] ,
double mtx_4D [ 16 ]
)
const doublemtx_3D [ 9 ] Input(输入)3D matrix
double (实数型)mtx_4D [ 16 ] Output(输出)4D matrix

 


 
UF_MTX3_multiply (查看源代码)
 
定义在: uf_mtx.h
 
概述
Returns a 3x3 matrix product from two input matrices.

返回
void

环境
内部和外部
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
void UF_MTX3_multiply
(
const double mtx1 [ 9 ] ,
const double mtx2 [ 9 ] ,
double mtx_product [ 9 ]
)
const doublemtx1 [ 9 ] Input(输入)Matrix #1
const doublemtx2 [ 9 ] Input(输入)Matrix #2
double (实数型)mtx_product [ 9 ] Output(输出)Matrix product
mtx_product = mtx1 X mtx2

 


 
UF_MTX3_multiply_t (查看源代码)
 
定义在: uf_mtx.h
 
概述
Returns a 3x3 matrix product by transposing the first matrix before
performing the multiplication.

返回
void

环境
内部和外部
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
void UF_MTX3_multiply_t
(
const double mtx1 [ 9 ] ,
const double mtx2 [ 9 ] ,
double mtx_product [ 9 ]
)
const doublemtx1 [ 9 ] Input(输入)Matrix #1 gets transposed before the multiplication.
const doublemtx2 [ 9 ] Input(输入)Matrix #2
double (实数型)mtx_product [ 9 ] Output(输出)Matrix product
mtx_product = trns(mtx1) X mtx2

 


 
UF_MTX3_ortho_normalize (查看源代码)
 
定义在: uf_mtx.h
 
概述
Returns a 3x3 matrix whose direction vectors are orthogonal and of
unit length.

返回
void

环境
内部和外部
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
void UF_MTX3_ortho_normalize
(
double mtx [ 9 ]
)
double (实数型)mtx [ 9 ] Input / OutputMatrix to be ortho-normalized. (Input)
Ortho-normalized matrix. (Output)

 


 
UF_MTX3_rotate_about_axis (查看源代码)
 
定义在: uf_mtx.h
 
概述
Returns a 3x3 rotation matrix about an axis and through a specified
angle of rotation.

返回
void

环境
内部和外部
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
void UF_MTX3_rotate_about_axis
(
const double rotation_axis [ 3 ] ,
double rotation_angle,
double mtx [ 9 ]
)
const doublerotation_axis [ 3 ] Input(输入)Vector of the rotation axis
double (实数型)rotation_angleInput(输入)Angle of the rotation (in radians)
double (实数型)mtx [ 9 ] Output(输出)Rotation Matrix

 


 
UF_MTX3_transpose (查看源代码)
 
定义在: uf_mtx.h
 
概述
Returns the transpose of a 3x3 matrix.

返回
void

环境
内部和外部
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
void UF_MTX3_transpose
(
const double mtx [ 9 ] ,
double transpose_mtx [ 9 ]
)
const doublemtx [ 9 ] Input(输入)Matrix to transpose
double (实数型)transpose_mtx [ 9 ] Output(输出)Transposed matrix
transpose_mtx = trns(mtx)

 


 
UF_MTX3_vec_multiply (查看源代码)
 
定义在: uf_mtx.h
 
概述
Returns a vector which is the product of a 3D vector and a 3x3 matrix.

返回
void

环境
内部和外部
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
void UF_MTX3_vec_multiply
(
const double vec [ 3 ] ,
const double mtx [ 9 ] ,
double vec_product [ 3 ]
)
const doublevec [ 3 ] Input(输入)Vector to multiply
const doublemtx [ 9 ] Input(输入)Matrix to multiply
double (实数型)vec_product [ 3 ] Output(输出)Product (a vector)
vec_product = vec X mtx

 


 
UF_MTX3_vec_multiply_t (查看源代码)
 
定义在: uf_mtx.h
 
概述
Returns a vector which is the product of a 3D vector and a transposed
3x3 matrix.

返回
void

环境
内部和外部
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
void UF_MTX3_vec_multiply_t
(
const double vec [ 3 ] ,
const double mtx [ 9 ] ,
double vec_product [ 3 ]
)
const doublevec [ 3 ] Input(输入)Vector to multiply
const doublemtx [ 9 ] Input(输入)Matrix to transpose and multiply
double (实数型)vec_product [ 3 ] Output(输出)Product (a vector)
vec_product = vec X trns(mtx)

 


 
UF_MTX3_x_vec (查看源代码)
 
定义在: uf_mtx.h
 
概述
Returns the X-direction vector of a matrix.

返回
void

环境
内部和外部
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
void UF_MTX3_x_vec
(
const double mtx [ 9 ] ,
double x_vec [ 3 ]
)
const doublemtx [ 9 ] Input(输入)3x3 Matrix whose X-direction is required
double (实数型)x_vec [ 3 ] Output(输出)X-direction vector of the matrix

 


 
UF_MTX3_y_vec (查看源代码)
 
定义在: uf_mtx.h
 
概述
Returns the Y-direction vector of a 3x3 matrix.

返回
void

环境
内部和外部
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
void UF_MTX3_y_vec
(
const double mtx [ 9 ] ,
double y_vec [ 3 ]
)
const doublemtx [ 9 ] Input(输入)Matrix whose Y-direction is required
double (实数型)y_vec [ 3 ] Output(输出)Y-direction vector of the matrix

 


 
UF_MTX3_z_vec (查看源代码)
 
定义在: uf_mtx.h
 
概述
Returns the Z-direction vector of a 3x3 matrix.

返回
void

环境
内部和外部
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
void UF_MTX3_z_vec
(
const double mtx [ 9 ] ,
double z_vec [ 3 ]
)
const doublemtx [ 9 ] Input(输入)Matrix whose Z-direction is required
double (实数型)z_vec [ 3 ] Output(输出)Z-direction vector of the matrix

 


 
UF_MTX4_ask_rotation (查看源代码)
 
定义在: uf_mtx.h
 
概述
Returns the 3x3 rotation matrix of a 4x4 matrix.

返回
void

环境
内部和外部
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
void UF_MTX4_ask_rotation
(
const double mtx_4D [ 16 ] ,
double mtx_3D [ 9 ]
)
const doublemtx_4D [ 16 ] Input(输入)4x4 matrix whose rotation is required
double (实数型)mtx_3D [ 9 ] Output(输出)3x3 rotation matrix of the 4x4 matrix

 


 
UF_MTX4_ask_scale (查看源代码)
 
定义在: uf_mtx.h
 
概述
Returns the scale factor of a 4x4 matrix.

返回
void

环境
内部和外部
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
void UF_MTX4_ask_scale
(
const double mtx [ 16 ] ,
double * scale
)
const doublemtx [ 16 ] Input(输入)Matrix whose scale is required.
double * (实数型指针)scaleOutput(输出)Scale factor of the matrix

 


 
UF_MTX4_ask_translation (查看源代码)
 
定义在: uf_mtx.h
 
概述
Returns the translation vector of a 4x4 matrix.

返回
void

环境
内部和外部
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
void UF_MTX4_ask_translation
(
const double mtx [ 16 ] ,
double translate_vec [ 3 ]
)
const doublemtx [ 16 ] Input(输入)Matrix whose translation is required.
double (实数型)translate_vec [ 3 ] Output(输出)Translation vector of the matrix

 


 
UF_MTX4_copy (查看源代码)
 
定义在: uf_mtx.h
 
概述
Copies 4x4 matrix elements from the source matrix to the destination
matrix.

返回
void

环境
内部和外部
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
void UF_MTX4_copy
(
const double mtx_src [ 16 ] ,
double mtx_dst [ 16 ]
)
const doublemtx_src [ 16 ] Input(输入)Source matrix
double (实数型)mtx_dst [ 16 ] Output(输出)Destination matrix
mtx_dst = mtx_src

 


 
UF_MTX4_csys_to_csys (查看源代码)
 
定义在: uf_mtx.h
 
概述
Returns the matrix which can be used to map from one csys to another.

环境
内部和外部

参见
Refer to example

历史
Originally released in V16.0
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_MTX4_csys_to_csys
(
const double from_origin [ 3 ] ,
const double from_x_axis [ 3 ] ,
const double from_y_axis [ 3 ] ,
const double to_origin [ 3 ] ,
const double to_x_axis [ 3 ] ,
const double to_y_axis [ 3 ] ,
double mtx [ 16 ]
)
const doublefrom_origin [ 3 ] Input(输入)origin of csys to map from
const doublefrom_x_axis [ 3 ] Input(输入)x axis of csys to map from
const doublefrom_y_axis [ 3 ] Input(输入)y axis of csys to map from
const doubleto_origin [ 3 ] Input(输入)origin of csys to map to
const doubleto_x_axis [ 3 ] Input(输入)x axis of csys to map to
const doubleto_y_axis [ 3 ] Input(输入)y axis of csys to map to
double (实数型)mtx [ 16 ] Output(输出)Returned matrix that can be used to
tranform objects

 


 
UF_MTX4_edit_rotation (查看源代码)
 
定义在: uf_mtx.h
 
概述
Edits the 3x3 rotation matrix of a 4 x 4 matrix.

返回
void

环境
内部和外部
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
void UF_MTX4_edit_rotation
(
double mtx_4D [ 16 ] ,
const double mtx_3D [ 9 ]
)
double (实数型)mtx_4D [ 16 ] Input / Output4x4 matrix whose rotation is to be edited. (Input)
4x4 with an edited 3x3 rotation matrix. (Output)
const doublemtx_3D [ 9 ] Input(输入)3x3 rotation matrix to use as replacement in 4x4
matrix.

 


 
UF_MTX4_edit_scale (查看源代码)
 
定义在: uf_mtx.h
 
概述
Edits the scale factor of a 4 x 4 matrix.

返回
void

环境
内部和外部
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
void UF_MTX4_edit_scale
(
double mtx [ 16 ] ,
double scale
)
double (实数型)mtx [ 16 ] Input / Output4x4 matrix whose scale is to be edited. (Input)
4x4 with an edited scale factor. (Output)
double (实数型)scaleInput(输入)Scale factor to use as replacement in 4x4 matrix.

 


 
UF_MTX4_edit_translation (查看源代码)
 
定义在: uf_mtx.h
 
概述
Edits the translation vector of a 4 x 4 matrix.

返回
void

环境
内部和外部
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
void UF_MTX4_edit_translation
(
double mtx [ 16 ] ,
const double translate_vec [ 3 ]
)
double (实数型)mtx [ 16 ] Input / Output4x4 matrix whose translation is to be edited. (Input)
4x4 with an edited translation vector. (Output)
const doubletranslate_vec [ 3 ] Input(输入)Translation vector to use as replacement in 4x4
matrix.

 


 
UF_MTX4_identity (查看源代码)
 
定义在: uf_mtx.h
 
概述
Returns a 4 x 4 identity matrix.

返回
void

环境
内部和外部
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
void UF_MTX4_identity
(
double identity_mtx [ 16 ]
)
double (实数型)identity_mtx [ 16 ] Output(输出)Identity Matrix

 


 
UF_MTX4_initialize (查看源代码)
 
定义在: uf_mtx.h
 
概述
Returns the 4x4 matrix formed from a 3x3 rotation matrix, a 3D
translation vector, and a scale factor.

返回
void

环境
内部和外部
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
void UF_MTX4_initialize
(
double scale,
const double translation_vec [ 3 ] ,
const double mtx_3D [ 9 ] ,
double mtx_4D [ 16 ]
)
double (实数型)scaleInput(输入)Scale factor
const doubletranslation_vec [ 3 ] Input(输入)Translation vector
const doublemtx_3D [ 9 ] Input(输入)3x3 rotation matrix
double (实数型)mtx_4D [ 16 ] Output(输出)4x4 matrix

 


 
UF_MTX4_invert (查看源代码)
 
定义在: uf_mtx.h
 
概述
Returns the matrix which is the invert of the input one

返回
Return value:
0 = Success (inverted matrix created)
n = Matrix not defined

环境
内部和外部

历史
Originally released in V18.0
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_MTX4_invert
(
const double mtx_in [ 16 ] ,
double mtx_out [ 16 ]
)
const doublemtx_in [ 16 ] Input(输入)Input matrix
double (实数型)mtx_out [ 16 ] Output(输出)Returned inverted matrix

 


 
UF_MTX4_mirror (查看源代码)
 
定义在: uf_mtx.h
 
概述
Returns the matrix which can be used to mirror about a plane

环境
内部和外部

参见
Refer to example

历史
Originally released in V16.0
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_MTX4_mirror
(
const double origin [ 3 ] ,
const double normal [ 3 ] ,
double mtx [ 16 ]
)
const doubleorigin [ 3 ] Input(输入)The origin of the plane.
const doublenormal [ 3 ] Input(输入)The plane normal
double (实数型)mtx [ 16 ] Output(输出)Returned matrix that can be used to
tranform objects

 


 
UF_MTX4_multiply (查看源代码)
 
定义在: uf_mtx.h
 
概述
Returns a 4x4 matrix product from two input matrices.

返回
void

环境
内部和外部
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
void UF_MTX4_multiply
(
const double mtx1 [ 16 ] ,
const double mtx2 [ 16 ] ,
double mtx_product [ 16 ]
)
const doublemtx1 [ 16 ] Input(输入)Matrix #1
const doublemtx2 [ 16 ] Input(输入)Matrix #2
double (实数型)mtx_product [ 16 ] Output(输出)Matrix product
mtx_product = mtx1 X mtx2

 


 
UF_MTX4_multiply_t (查看源代码)
 
定义在: uf_mtx.h
 
概述
Returns a 4x4 matrix product by transposing the first matrix before
performing the multiplication.

返回
void

环境
内部和外部
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
void UF_MTX4_multiply_t
(
const double mtx1 [ 16 ] ,
const double mtx2 [ 16 ] ,
double mtx_product [ 16 ]
)
const doublemtx1 [ 16 ] Input(输入)Matrix #1 gets transposed before the
multiplication.
const doublemtx2 [ 16 ] Input(输入)Matrix #2
double (实数型)mtx_product [ 16 ] Output(输出)Matrix product
mtx_product = trns(mtx1) X mtx2

 


 
UF_MTX4_ortho_normalize (查看源代码)
 
定义在: uf_mtx.h
 
概述
Returns a 4x4 matrix whose direction vectors are orthogonal and of
unit length.

返回
void

环境
内部和外部
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
void UF_MTX4_ortho_normalize
(
double mtx [ 16 ]
)
double (实数型)mtx [ 16 ] Input / OutputMatrix to be ortho-normalized. (Input)
Ortho-normalized matrix. (Output)

 


 
UF_MTX4_rotation (查看源代码)
 
定义在: uf_mtx.h
 
概述
Returns the matrix which can be used to rotate about a point

环境
内部和外部

参见
Refer to example

历史
Originally released in V16.0
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_MTX4_rotation
(
const double rotation_point [ 3 ] ,
const double rotation_axis [ 3 ] ,
const double angle,
double mtx [ 16 ]
)
const doublerotation_point [ 3 ] Input(输入)Point about which the rotation is to
be performed.
const doublerotation_axis [ 3 ] Input(输入)Axis about which rotation to occur.
const doubleangleInput(输入)rotation angle in degrees
double (实数型)mtx [ 16 ] Output(输出)returned matrix that can be used to
tranform objects

 


 
UF_MTX4_scaling (查看源代码)
 
定义在: uf_mtx.h
 
概述
Returns the matrix using scaling and invariant point information.

环境
内部和外部

参见
Refer to example

历史
Originally released in V16.0
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_MTX4_scaling
(
const double invariant_point [ 3 ] ,
const double scale [ 3 ] ,
double mtx [ 16 ]
)
const doubleinvariant_point [ 3 ] Input(输入)Point which will be invariant to the
scaling, in other words the center
point of the scale operation.
const doublescale [ 3 ] Input(输入)scaling in x, y, z directions
double (实数型)mtx [ 16 ] Output(输出)returned matrix that can be used to
tranform objects

 


 
UF_MTX4_transpose (查看源代码)
 
定义在: uf_mtx.h
 
概述
Returns the transpose of a 4x4 matrix.

返回
void

环境
内部和外部
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
void UF_MTX4_transpose
(
const double mtx [ 16 ] ,
double transpose_mtx [ 16 ]
)
const doublemtx [ 16 ] Input(输入)Matrix to transpose
double (实数型)transpose_mtx [ 16 ] Output(输出)Transposed matrix
transpose_mtx = trns(mtx)

 


 
UF_MTX4_vec3_multiply (查看源代码)
 
定义在: uf_mtx.h
 
概述
Returns a 3D vector which is the product of a 3D vector and a 4x4
matrix. The 3D vector is treated as a 4D vector with a weight of 1.0.

返回
void

环境
内部和外部
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
void UF_MTX4_vec3_multiply
(
const double vec [ 3 ] ,
const double mtx [ 16 ] ,
double vec_product [ 3 ]
)
const doublevec [ 3 ] Input(输入)Vector to multiply
const doublemtx [ 16 ] Input(输入)Matrix to multiply
double (实数型)vec_product [ 3 ] Output(输出)Product (a vector)
vec_product = vec X mtx

 


 
UF_MTX4_vec3_multiply_t (查看源代码)
 
定义在: uf_mtx.h
 
概述
Returns a 3D vector which is the product of a 3D vector and the
transpose of a 4x4 matrix. During the multiplication, the 3D vector is
treated as a 4D vector with a weight of 1.0.

返回
void

环境
内部和外部
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
void UF_MTX4_vec3_multiply_t
(
const double vec [ 3 ] ,
const double mtx [ 16 ] ,
double vec_product [ 3 ]
)
const doublevec [ 3 ] Input(输入)Vector to multiply
const doublemtx [ 16 ] Input(输入)Matrix to multiply
double (实数型)vec_product [ 3 ] Output(输出)Product (a vector)
vec_product = vec X trns(mtx)

 


 
UF_MTX4_vec_multiply (查看源代码)
 
定义在: uf_mtx.h
 
概述
Returns a 4D vector which is the product of a 4D vector and a 4x4
matrix.

返回
void

环境
内部和外部
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
void UF_MTX4_vec_multiply
(
const double vec [ 4 ] ,
const double mtx [ 16 ] ,
double vec_product [ 4 ]
)
const doublevec [ 4 ] Input(输入)Vector to multiply
const doublemtx [ 16 ] Input(输入)Matrix to multiply
double (实数型)vec_product [ 4 ] Output(输出)Product (a vector)
vec_product = vec X mtx

 


 
UF_MTX4_vec_multiply_t (查看源代码)
 
定义在: uf_mtx.h
 
概述
Returns a vector which is the product of a 4D vector and a transposed
matrix.

返回
void

环境
内部和外部
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
void UF_MTX4_vec_multiply_t
(
const double vec [ 4 ] ,
const double mtx [ 16 ] ,
double vec_product [ 4 ]
)
const doublevec [ 4 ] Input(输入)Vector to multiply
const doublemtx [ 16 ] Input(输入)Matrix to transpose and multiply
double (实数型)vec_product [ 4 ] Output(输出)Product (a vector)
vec_product = vec X trns(mtx)

 


 
UF_MTX4_x_vec (查看源代码)
 
定义在: uf_mtx.h
 
概述
Returns the X-direction vector of the 3x3 rotation of a 4x4 matrix.

返回
void

环境
内部和外部
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
void UF_MTX4_x_vec
(
const double mtx [ 16 ] ,
double x_vec [ 3 ]
)
const doublemtx [ 16 ] Input(输入)4x4 Matrix whose X-direction is required
double (实数型)x_vec [ 3 ] Output(输出)X-direction vector of the matrix

 


 
UF_MTX4_y_vec (查看源代码)
 
定义在: uf_mtx.h
 
概述
Returns the Y-direction vector of the 3x3 rotation of a 4x4 matrix.

返回
void

环境
内部和外部
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
void UF_MTX4_y_vec
(
const double mtx [ 16 ] ,
double y_vec [ 3 ]
)
const doublemtx [ 16 ] Input(输入)4x4 matrix whose Y-direction is required
double (实数型)y_vec [ 3 ] Output(输出)Y-direction vector of the matrix

 


 
UF_MTX4_z_vec (查看源代码)
 
定义在: uf_mtx.h
 
概述
Returns the Z-direction vector of the 3x3 rotation of a 4x4 matrix.

返回
void

环境
内部和外部
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
void UF_MTX4_z_vec
(
const double mtx [ 16 ] ,
double z_vec [ 3 ]
)
const doublemtx [ 16 ] Input(输入)Matrix whose Z-direction is required
double (实数型)z_vec [ 3 ] Output(输出)Z-direction vector of the matrix