AnyCAD SDK PRO  2020
The Professional Graphics SDK for .Net and C++ Developers
Public 成员函数 | 所有成员列表
AnyCAD::Platform::MatrixBuilder类 参考

矩阵构造器。 更多...

Public 成员函数

Matrix4MakeTranslate (Real tx, Real ty, Real tz)
 
Matrix4MakeTranslate (Vector3^ offset)
 
Matrix4MakeScale (Real sx, Real sy, Real sz)
 
Matrix4MakeScale (Vector3^ scale)
 
Matrix4MakeRotation (Real angle, Vector3^ axis)
 
Matrix4MakeRotation (Real angle, Vector3^ dir, Vector3^ position)
 
Matrix4RotationTo (Vector3^ fromDir, Vector3^ toDir)
 
Matrix4Multiply (Matrix4^ left, Matrix4^ right)
 
Matrix4ToWorldMatrix (Coordinate3^ coord)
 

详细描述

矩阵构造器。

矩阵计算的辅助类。

成员函数说明

Matrix4 ^ AnyCAD::Platform::MatrixBuilder::MakeRotation ( Real  angle,
Vector3 axis 
)

根据轴(位于原点)和角度构造旋转矩阵。

参数
angle旋转的角度,取值范围[0, 360)。
axis旋转轴的方向.
返回
Matrix4
Matrix4 ^ AnyCAD::Platform::MatrixBuilder::MakeRotation ( Real  angle,
Vector3 dir,
Vector3 position 
)

根据轴和角度构造旋转矩阵。

参数
angle旋转的角度,取值范围[0, 360)。
dir旋转轴的方向.
position旋转轴的位置。
返回
Matrix4
Matrix4 ^ AnyCAD::Platform::MatrixBuilder::MakeScale ( Real  sx,
Real  sy,
Real  sz 
)

构造缩放矩阵。

参数
sxx方向的缩放比例
syy方向的缩放比例
szz方向的缩放比例
返回
Matrix4
Matrix4 ^ AnyCAD::Platform::MatrixBuilder::MakeScale ( Vector3 scale)

构造缩放矩阵。

参数
scale缩放比例。
返回
Matrix4
Matrix4 ^ AnyCAD::Platform::MatrixBuilder::MakeTranslate ( Real  tx,
Real  ty,
Real  tz 
)

构造平移矩阵。

参数
txx方向的位移
tyy方向的位移
tzz方向的位移
返回
Matrix4
Matrix4 ^ AnyCAD::Platform::MatrixBuilder::MakeTranslate ( Vector3 offset)

构造平移矩阵。

参数
offset位移向量。
返回
Matrix4
Matrix4 ^ AnyCAD::Platform::MatrixBuilder::Multiply ( Matrix4 left,
Matrix4 right 
)

计算矩阵相乘

参数
left左边的矩阵
right右边的矩阵
返回
Matrix4
Matrix4 ^ AnyCAD::Platform::MatrixBuilder::RotationTo ( Vector3 fromDir,
Vector3 toDir 
)

根据两个向量构造旋转矩阵。

参数
fromDir起始的向量。
toDir结束的向量。
返回
Matrix4
Matrix4 ^ AnyCAD::Platform::MatrixBuilder::ToWorldMatrix ( Coordinate3 coord)

获取局部坐标系的世界矩阵。

参数
coord局部坐标系。
返回
Matrix4

该类的文档由以下文件生成: