|
AnyCAD Rapid API 2026
Help you to create a better world!
|
向量 更多...
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] |
向量
| override bool AnyCAD.Foundation.Vector3d.Equals | ( | object | obj | ) |
判断是否相等
| obj | 比较的对象 |
| override int AnyCAD.Foundation.Vector3d.GetHashCode | ( | ) |
返回对象的哈希值
| bool AnyCAD.Foundation.Vector3d.IsEqual | ( | Vector3d | v2, |
| double | tol = 10e-6 ) |
判断是否相等
| v2 | 对象 |
| tol | 比较误差 |
| override string AnyCAD.Foundation.Vector3d.ToString | ( | ) |
转换成字符串