|
AnyCAD Rapid API 2026
Help you to create a better world!
|
球. 更多...
Public 成员函数 | |
| Sphere (global::System.IntPtr cPtr, bool cMemoryOwn) | |
| 仅供内部使用 | |
| void | Dispose () |
| Sphere () | |
| Standard constructor - creates a unit sphere around the origin. | |
| Sphere (Vector3d center, double radius) | |
| Sphere (AABox bbox) | |
| double | getRadius () |
| Returns the radius of the sphere. | |
| void | setRadius (double radius) |
| Sets the radius of the sphere. | |
| Vector3d | getCenter () |
| Returns the center point of the sphere. | |
| void | setCenter (Vector3d center) |
| Sets the center point of the sphere. | |
| bool | intersects (Sphere s) |
| Returns whether or not this sphere intersects another sphere. | |
| bool | intersects (AABox box) |
| Returns whether or not this sphere intersects a box. | |
| bool | intersects (Plane plane) |
| Returns whether or not this sphere intersects a plane. | |
| bool | intersects (Vector3d v) |
| Returns whether or not this sphere intersects a point. | |
| void | merge (Sphere oth) |
| Merges another Sphere into the current sphere | |
| void | transform (Matrix4d trf) |
球.
A sphere in math texts is normally represented by the function x^2 + y^2 + z^2 = r^2 (for sphere's centered on the origin). Ogre stores spheres simply as a center point and a radius.
Group: Common
| AnyCAD.Foundation.Sphere.Sphere | ( | Vector3d | center, |
| double | radius ) |
Constructor allowing arbitrary spheres.
| center | The center point of the sphere. |
| radius | The radius of the sphere. |