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

向量 更多...

Public 成员函数

 Vector3d (GPnt p)
 
 Vector3d (GXYZ p)
 
 Vector3d (GVec p)
 
 Vector3d (GDir p)
 
 Vector3d (Vector3 p)
 
GPnt ToPnt ()
 
GVec ToVec ()
 
GDir ToDir ()
 
GXYZ ToXYZ ()
 
bool IsEqual (Vector3d v2, double tol=10e-6)
 判断是否相等
 
override bool Equals (object obj)
 判断是否相等
 
override string ToString ()
 转换成字符串
 

静态 Public 成员函数

static Vector3d From (GPnt pt)
 
static Vector3d From (GXYZ pt)
 
static Vector3d From (GDir dir)
 
static Vector3d From (GVec vec)
 
static Vector3d From (Vector3 vec)
 
static Vector3d GetPosition (Matrix4 m)
 
static Vector3d GetPosition (Matrix4d m)
 
static Vector3d operator* (Vector3d a, Matrix4 b)
 
static Vector3d operator* (Vector3d a, Matrix4d b)
 
static Vector3d operator* (Vector3d a, double scalar)
 
static Vector3d operator+ (Vector3d a, Vector3 b)
 
static Vector3d operator+ (Vector3d a, GXYZ b)
 
static Vector3d operator+ (Vector3d a, GPnt b)
 
static Vector3d operator+ (Vector3d a, GVec b)
 
static Vector3d operator+ (Vector3d a, Vector3d b)
 
static Vector3d operator- (Vector3d a, Vector3 b)
 
static Vector3d operator- (Vector3d a, GXYZ b)
 
static Vector3d operator- (Vector3d a, GPnt b)
 
static Vector3d operator- (Vector3d a, GVec b)
 
static Vector3d operator- (Vector3d a, Vector3d b)
 
static Vector3d operator- (Vector3d a)
 

静态 Public 属性

static readonly Vector3d Zero = new Vector3d(0, 0, 0)
 
static readonly Vector3d UNIT_X = new Vector3d(1, 0, 0)
 
static readonly Vector3d UNIT_Y = new Vector3d(0, 1, 0)
 
static readonly Vector3d UNIT_Z = new Vector3d(0, 0, 1)
 

详细描述

向量

成员函数说明

◆ Equals()

override bool AnyCAD.Foundation.Vector3d.Equals ( object obj)

判断是否相等

参数
obj比较的对象
返回
true相等

◆ IsEqual()

bool AnyCAD.Foundation.Vector3d.IsEqual ( Vector3d v2,
double tol = 10e-6 )

判断是否相等

参数
v2对象
tol比较误差
返回

◆ ToString()

override string AnyCAD.Foundation.Vector3d.ToString ( )

转换成字符串

返回
字符串