|
AnyCAD Rapid API 2026
Help you to create a better world!
|
球体模板类 更多...
Public 成员函数 | |
| SphereF (global::System.IntPtr cPtr, bool cMemoryOwn) | |
| 仅供内部使用 | |
| void | Dispose () |
| SphereF () | |
| Standard constructor - creates a unit sphere around the origin. | |
| SphereF (Vector3 center, float radius) | |
| SphereF (AABoxF bbox) | |
| float | getRadius () |
| Returns the radius of the sphere. | |
| void | setRadius (float radius) |
| Sets the radius of the sphere. | |
| Vector3 | getCenter () |
| Returns the center point of the sphere. | |
| void | setCenter (Vector3 center) |
| Sets the center point of the sphere. | |
| bool | intersects (SphereF s) |
| Returns whether or not this sphere intersects another sphere. | |
| bool | intersects (AABoxF box) |
| Returns whether or not this sphere intersects a box. | |
| bool | intersects (PlaneF plane) |
| Returns whether or not this sphere intersects a plane. | |
| bool | intersects (Vector3 v) |
| Returns whether or not this sphere intersects a point. | |
| void | merge (SphereF oth) |
| Merges another Sphere into the current sphere | |
| void | transform (Matrix4 trf) |
球体模板类
表示三维空间中的球体,由球心和半径定义。 在数学文献中,球体通常用方程 x² + y² + z² = r² 表示(以原点为中心的球体)。 本实现将球体存储为球心点和半径。
| AnyCAD.Foundation.SphereF.SphereF | ( | Vector3 | center, |
| float | radius ) |
Constructor allowing arbitrary spheres.
| center | The center point of the sphere. |
| radius | The radius of the sphere. |