|
AnyCAD Rapid API 2026
Help you to create a better world!
|
可以代表向量、点、方向、颜色 更多...
Public 成员函数 | |
| Vector3 (global::System.IntPtr cPtr, bool cMemoryOwn) | |
| 仅供内部使用 | |
| void | Dispose () |
| Vector3 (float scalar) | |
| Vector3 (float a, float b, float c) | |
| Vector3 | clone () |
| void | add (Vector3 v) |
| void | sub (Vector3 v) |
| void | applyMatrix4 (Matrix4 trf) |
| void | applyMatrix4d (Matrix4d trf) |
| void | multiplyScalar (float scalar) |
| void | normalize () |
| Vector3 | normalized () |
| float | length () |
| float | distanceTo (Vector3 v) |
| float | angleTo (Vector3 v) |
| float | orientedAngle (Vector3 v, Vector3 ref_) |
| float | dot (Vector3 v) |
| Vector3 | cross (Vector3 v) |
| Vector3 (double x, double y, double z) | |
| Vector3 (Vector3d p) | |
| Vector3 (GPnt p) | |
| Vector3 (GXYZ p) | |
| Vector3 (GVec p) | |
| Vector3 (GDir p) | |
| void | Copy (Vector3 val) |
| 复制 | |
| GPnt | ToPnt () |
| GVec | ToVec () |
| GDir | ToDir () |
| void | applyMatrix4 (Matrix4d trf) |
| void | ApplyMatrix (Matrix4 mat) |
| void | ApplyMatrix (Matrix4d mat) |
| bool | IsEqual (Vector3 v2, float tol=10e-3f) |
| 判断是否相等 | |
| override bool | Equals (object obj) |
| 判断是否相等 | |
| override int | GetHashCode () |
| 返回对象的哈希值 | |
| override string | ToString () |
| 转换成字符串 | |
静态 Public 成员函数 | |
| static Vector3 | From (double x, double y, double z) |
| 从x,y,z构造 | |
| static Vector3 | ColorFromRGB (byte r, byte g, byte b) |
| 遗弃的方法。 请使用ColorTable.RGB(...) | |
| static Vector3 | ColorFromHex (UInt32 hex) |
| /// 遗弃的方法。 请使用ColorTable.Hex(...) | |
| static Vector3 | From (GPnt pt) |
| 从GPnt来构造 | |
| static Vector3 | GetPosition (Matrix4 m) |
| 从矩阵中解析位移分量 | |
| static Vector3 | GetPosition (Matrix4d m) |
| 从矩阵中解析位移分量 | |
| static Vector3 | From (GXYZ pt) |
| static Vector3 | From (GDir dir) |
| static Vector3 | From (GVec vec) |
| static Vector3 | From (Vector3d v) |
| static Vector3 | operator* (Vector3 a, Matrix4 b) |
| static Vector3 | operator* (Vector3 a, Matrix4d b) |
| static Vector3 | operator* (Vector3 a, float scalar) |
| static Vector3 | operator* (Vector3 a, double scalar) |
| static Vector3 | operator+ (Vector3 a, Vector3 b) |
| static Vector3 | operator+ (Vector3 a, Vector3d b) |
| static Vector3 | operator- (Vector3 a, Vector3 b) |
| static Vector3 | operator- (Vector3 a, Vector3d b) |
| static Vector3 | operator- (Vector3 a) |
| static int | GetHashCode (Vector3 v, float a) |
| static string | FormatString (Vector3 v) |
静态 Public 属性 | |
| static readonly Vector3 | Zero = new Vector3(0) |
| static readonly Vector3 | Red = new Vector3(1, 0, 0) |
| static readonly Vector3 | Green = new Vector3(0, 1, 0) |
| static readonly Vector3 | Blue = new Vector3(0, 0, 1) |
| static readonly Vector3 | LightGray = new Vector3(0.85f) |
| static readonly Vector3 | UNIT_X = new Vector3(1, 0, 0) |
| static readonly Vector3 | UNIT_Y = new Vector3(0, 1, 0) |
| static readonly Vector3 | UNIT_Z = new Vector3(0, 0, 1) |
属性 | |
| float | x [get, set] |
| float | y [get, set] |
| float | z [get, set] |
可以代表向量、点、方向、颜色
|
static |
/// 遗弃的方法。 请使用ColorTable.Hex(...)
| hex |
|
static |
遗弃的方法。 请使用ColorTable.RGB(...)
| r | Red |
| g | Green |
| b | Blue |
| void AnyCAD.Foundation.Vector3.Copy | ( | Vector3 | val | ) |
复制
| val |
| override bool AnyCAD.Foundation.Vector3.Equals | ( | object | obj | ) |
判断是否相等
| obj | 比较的对象 |
|
static |
从x,y,z构造
| x | |
| y | |
| z |
| override int AnyCAD.Foundation.Vector3.GetHashCode | ( | ) |
返回对象的哈希值
| bool AnyCAD.Foundation.Vector3.IsEqual | ( | Vector3 | v2, |
| float | tol = 10e-3f ) |
判断是否相等
| v2 | 对象 |
| tol | 比较误差 |
| override string AnyCAD.Foundation.Vector3.ToString | ( | ) |
转换成字符串