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

球. 更多...

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

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)
 

详细描述

球.

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

构造及析构函数说明

◆ SphereF()

AnyCAD.Foundation.SphereF.SphereF ( Vector3 center,
float radius )

Constructor allowing arbitrary spheres.

参数
centerThe center point of the sphere.
radiusThe radius of the sphere.