AnyCAD C++ API  2018
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义 
APIMatrixBuilder.h
浏览该文件的文档.
1 //Public API. Powered by AnyCAD.
2 
3 #ifndef _APIMatrixBuilder_H_
4 #define _APIMatrixBuilder_H_
5 
6 #include "APIObjectDef.h"
7 
8 namespace AnyCAD{ namespace API
9 {
18  {
20  public:
28  static Matrix4 MakeTranslate (Real tx, Real ty, Real tz) ;
34  static Matrix4 MakeTranslate (const Vector3& offset) ;
42  static Matrix4 MakeScale (Real sx, Real sy, Real sz) ;
48  static Matrix4 MakeScale (const Vector3& scale) ;
55  static Matrix4 MakeRotation (Real angle, const Vector3& axis) ;
63  static Matrix4 MakeRotation (Real angle, const Vector3& dir, const Vector3& position) ;
70  static Matrix4 RotationTo (const Vector3& fromDir, const Vector3& toDir) ;
77  static Matrix4 Multiply (const Matrix4& left, const Matrix4& right) ;
83  static Matrix4 ToWorldMatrix (const Coordinate3& coord) ;
84  };//MatrixBuilder;
85 }}//API
86 
87 #endif //_APIMatrixBuilder_H_
#define AnyPlatformAPI_API
Definition: AnyPlatformAPI.h:8
Matrix4.
Definition: APIMath.h:248
Coordinate.
Definition: APIMath.h:416
矩阵构造器。
Definition: APIMatrixBuilder.h:17
#define DECLARE_APIOBJECT(className)
Definition: APIObjectDef.h:10
Point or vector.
Definition: APIMath.h:37
double Real
Definition: APIMath.h:7