-
首页
-
C4D R23.110 C++ SDK
详细描述
Function Documentation
◆
MatrixMove()
矩阵
MatrixMove
|
(
|
const
向量
&
|
t
|
)
|
|
Creates a translation matrix.
-
参数
-
[in]
|
t
|
The translation vector.
|
-
返回
-
The translation matrix.
◆
MatrixScale()
矩阵
MatrixScale
|
(
|
const
向量
&
|
s
|
)
|
|
Creates a scaling matrix.
-
参数
-
[in]
|
s
|
The scaling vector for the axes.
|
-
返回
-
The scaling matrix.
◆
MatrixRotX()
Creates a rotation matrix on the X axis.
-
参数
-
[in]
|
w
|
The angle around X.
|
-
返回
-
The rotation matrix.
◆
MatrixRotY()
Creates a rotation matrix on the Y axis.
-
参数
-
[in]
|
w
|
The angle around Y.
|
-
返回
-
The rotation matrix.
◆
MatrixRotZ()
Creates a rotation matrix on the Z axis.
-
参数
-
[in]
|
w
|
The angle around Z.
|
-
返回
-
The rotation matrix.
◆
MatrixToHPB()
Calculates Euler angles from a matrix.
-
参数
-
[in]
|
m
|
The rotation matrix.
|
[in]
|
rot_order
|
The rotation order.
|
-
返回
-
The rotation HPB.
◆
VectorToHPB()
向量
VectorToHPB
|
(
|
const
向量
&
|
p
|
)
|
|
Calculates Euler angles from a vector.
-
注意
-
The bank is always set to
0.0
.
-
参数
-
[in]
|
p
|
The vector to find the HPB for.
|
-
返回
-
The rotation HPB.
◆
HPBToMatrix()
Constructs a matrix from Euler angles.
-
参数
-
[in]
|
hpb
|
The input HPB.
|
[in]
|
rot_order
|
The rotation order.
|
-
返回
-
The rotation matrix.
◆
MatrixToRotAxis()
void MatrixToRotAxis
|
(
|
const
矩阵
&
|
m
,
|
|
|
向量
*
|
v
,
|
|
|
Float
*
|
w
|
|
)
|
|
|
Calculates rotation axis and angle from a matrix.
-
参数
-
[in]
|
m
|
The rotation matrix.
|
[out]
|
v
|
Assigned the rotation axis.
|
[out]
|
w
|
Assigned the rotation angle.
|
◆
RotAxisToMatrix()
矩阵
RotAxisToMatrix
|
(
|
const
向量
&
|
v
,
|
|
|
Float
|
w
|
|
)
|
|
|
Calculates matrix from rotation axis and angle.
-
参数
-
[in]
|
v
|
The rotation axis.
|
[in]
|
w
|
The rotation angle.
|
-
返回
-
The rotation matrix.
◆
RebuildMatrix()
矩阵
RebuildMatrix
|
(
|
const
矩阵
&
|
m
|
)
|
|
Recalculates a matrix making it orthogonal if one or more of its vectors is collapsed (scale
0.0
).
-
参数
-
[in]
|
m
|
The matrix to rebuild.
|
-
返回
-
The recalculated matrix with the collapsed components fixed and unit length.