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

向量 更多...

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

Public 成员函数

 Vector3d (global::System.IntPtr cPtr, bool cMemoryOwn)
 仅供内部使用
 
void Dispose ()
 
 Vector3d (double scalar)
 
 Vector3d (double a, double b, double c)
 
Vector3d clone ()
 
void add (Vector3d v)
 
void sub (Vector3d v)
 
void applyMatrix4 (Matrix4 trf)
 
void applyMatrix4d (Matrix4d trf)
 
void multiplyScalar (double scalar)
 
void normalize ()
 
Vector3d normalized ()
 
double length ()
 
double distanceTo (Vector3d v)
 
double angleTo (Vector3d v)
 
double orientedAngle (Vector3d v, Vector3d ref_)
 
double dot (Vector3d v)
 
Vector3d cross (Vector3d v)
 
 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 int GetHashCode ()
 返回对象的哈希值
 
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)
 

属性

double x [get, set]
 
double y [get, set]
 
double z [get, set]
 

详细描述

向量

成员函数说明

◆ Equals()

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

判断是否相等

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

◆ GetHashCode()

override int AnyCAD.Foundation.Vector3d.GetHashCode ( )

返回对象的哈希值

返回
哈希值

◆ IsEqual()

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

判断是否相等

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

◆ ToString()

override string AnyCAD.Foundation.Vector3d.ToString ( )

转换成字符串

返回
字符串