AnyCAD Rapid API 2026
Help you to create a better world!
载入中...
搜索中...
未找到
AnyCAD.Foundation.Matrix4类 参考

4x4矩阵 更多...

类 AnyCAD.Foundation.Matrix4 继承关系图:

Public 成员函数

 Matrix4 (global::System.IntPtr cPtr, bool cMemoryOwn)
 仅供内部使用
 
void Dispose ()
 
 Matrix4 (float scalar)
 
 Matrix4 (float x0, float y0, float z0, float w0, float x1, float y1, float z1, float w1, float x2, float y2, float z2, float w2, float x3, float y3, float z3, float w3)
 
 Matrix4 (Vector4 v0, Vector4 v1, Vector4 v2, Vector4 v3)
 
Matrix4 clone ()
 
void copy (Matrix4d m)
 
float get (int i, int j)
 
void set (int i, int j, float val)
 
void rotate (float angle, Vector3 axis)
 
void scale (float ratio)
 
void scaleXYZ (float x, float y, float z)
 
void translate (Vector3 v)
 
Matrix3 toMatrix3 ()
 
void multiply (Matrix4 trf)
 
Matrix4 multiplied (Matrix4 trf)
 
Matrix4 multiplied (Matrix4d trf)
 
void transpose ()
 
Matrix4 transposed ()
 
void inverse ()
 
Matrix4 inversed ()
 
float determinant ()
 
Matrix4DecomposeResult decompose ()
 
Matrix4DecomposeResult decomposeTRS ()
 
Vector3 extractTranslation ()
 
Vector3 extractScale ()
 
Vector3 extractEulerAngleXYZ ()
 
 Matrix4 (Matrix4d m)
 
Matrix4d ToMatrix4d ()
 
override string ToString ()
 转换成字符串
 
void DebugOutput ()
 调试输出
 
GTrsf ToTrsf ()
 转换为GTrsf矩阵
 

静态 Public 成员函数

static Matrix4 makeRotationAxis (Vector3 position, Vector3 dir, float angle)
 
static Matrix4 makeRotationAxis (Vector3 axis, float angle)
 
static Matrix4 makeScale (float x, float y, float z)
 
static Matrix4 makeScaleWithCenter (Vector3 center, Vector3 scale)
 
static Matrix4 makeTranslation (float x, float y, float z)
 
static Matrix4 fromEulerAngleXYZ (float x, float y, float z)
 
static Matrix4 fromEulerAngleYXZ (float y, float x, float z)
 
static Matrix4 makeTranslation (Vector3 v)
 
static Matrix4 From (Matrix4d m)
 
static Matrix4 operator* (Matrix4 a, Matrix4 b)
 
static Matrix4 operator* (Matrix4 a, Matrix4d b)
 
static Vector3 operator* (Matrix4 a, Vector3 v)
 
static Vector3d operator* (Matrix4 a, Vector3d v)
 
static Vector4 operator* (Matrix4 a, Vector4 v)
 
static Vector4d operator* (Matrix4 a, Vector4d v)
 
static Matrix4 makeTranslate (double x, double y, double z)
 构造位移矩阵
 
static Matrix4 makeRotation (Vector3 from, Vector3 to)
 由向量构造旋转矩阵
 
static Matrix4 makeScale (Vector3 scale)
 
static Matrix4 makeTransform (GTrsf trf)
 从GTrsf构造Matrix4
 
static Matrix4 From (GTrsf trf)
 从GTrsf构造Matrix4
 
static Matrix4 makeFromAx2 (GAx2 ax)
 从GAx2构造Matrix4
 
static Matrix4 makeFromAx3 (GAx3 ax)
 从GAx3构造Matrix4
 

静态 Public 属性

static readonly Matrix4 Identity = new Matrix4(1)
 单位矩阵
 

详细描述

4x4矩阵

成员函数说明

◆ From()

static Matrix4 AnyCAD.Foundation.Matrix4.From ( GTrsf trf)
static

从GTrsf构造Matrix4

参数
trf
返回

◆ makeFromAx2()

static Matrix4 AnyCAD.Foundation.Matrix4.makeFromAx2 ( GAx2 ax)
static

从GAx2构造Matrix4

参数
ax
返回

◆ makeFromAx3()

static Matrix4 AnyCAD.Foundation.Matrix4.makeFromAx3 ( GAx3 ax)
static

从GAx3构造Matrix4

参数
ax
返回

◆ makeRotation()

static Matrix4 AnyCAD.Foundation.Matrix4.makeRotation ( Vector3 from,
Vector3 to )
static

由向量构造旋转矩阵

参数
from起始向量
to终止向量
返回

◆ makeTransform()

static Matrix4 AnyCAD.Foundation.Matrix4.makeTransform ( GTrsf trf)
static

从GTrsf构造Matrix4

参数
trf
返回

◆ makeTranslate()

static Matrix4 AnyCAD.Foundation.Matrix4.makeTranslate ( double x,
double y,
double z )
static

构造位移矩阵

参数
xΔX方向
yΔY方向
zΔZ方向
返回

◆ ToString()

override string AnyCAD.Foundation.Matrix4.ToString ( )

转换成字符串

返回

◆ ToTrsf()

GTrsf AnyCAD.Foundation.Matrix4.ToTrsf ( )

转换为GTrsf矩阵

返回