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

静态 Public 成员函数

static Vector3d To (GPnt pt)
 
static Vector2d To (GPnt2d pt)
 
static GPnt To (Vector3 pt)
 
static GPnt To (Vector3d pt)
 
static Plane ToPlane (GAx2 ax)
 
static Plane ToPlane (GPnt location, GDir dir)
 
static Vector3d To (GVec pt)
 
static Vector3d To (GDir pt)
 
static Vector3d To (GXYZ pt)
 
static Vector2d To (GXY pt)
 
static AABox To (AABox bbox)
 
static GTrsf To (GAx3 ax)
 
static GTrsf To (GAx2 ax)
 
static GXYZ ToEulerAngles (GTrsf trf)
 
static GQuaternion FromEulerAngles (GXYZ angles)
 
static GPnt Copy (GPnt v)
 
static GVec Copy (GVec v)
 
static GDir Copy (GDir v)
 
static GXYZ Copy (GXYZ v)
 
static GAx2 Copy (GAx2 v)
 
static GAx1 Copy (GAx1 v)
 
static GAx3 Copy (GAx3 v)
 
static GTrsf Copy (GTrsf v)
 
static GBBox Copy (GBBox v)
 
static boolean IsPointInside (GPnt2d pt, GVec2dList contour)
 
static AABox ToBox (GBBox box)
 
static GDir ComputeDirectionX (GDir dirZ)
 
static Float32Buffer Create (GPntList points)
 
static Float32Buffer Create (GPntList points, GTrsf trsf)
 

详细描述

数学计算和转换相关的工具

成员函数说明

◆ ComputeDirectionX()

static GDir MathUtil.ComputeDirectionX ( GDir dirZ)
static

根据Z的方向计算一个合适的X方向

参数
dirZ
返回
X方向

◆ Create() [1/2]

static Float32Buffer MathUtil.Create ( GPntList points)
static

根据点转为Float32Buffer

参数
points点列表
返回
Buffer

◆ Create() [2/2]

static Float32Buffer MathUtil.Create ( GPntList points,
GTrsf trsf )
static

点转换为Float32Buffer

参数
points点列表
trsf矩阵变换
返回
Buffer

◆ ToBox()

static AABox MathUtil.ToBox ( GBBox box)
static

Box转换

参数
boxBnd_Box类型的box
返回
AABox

◆ ToEulerAngles()

static GXYZ MathUtil.ToEulerAngles ( GTrsf trf)
static

转换成欧拉角,角度

返回