Ovis_3D_Sphere_Center_Get()
摘要
返回 3D 球体的球心。
语法
Ovis_3D_Sphere_Center_Get (sphere_dec_ptr, center_ptr)
| 参数 | 类型 | 说明 |
|---|---|---|
sphere_dec_ptr |
OvisT_3D_Sphere * |
球体 |
center_ptr |
OvisT_3D_Position * |
球心 |
返回类型
OvisT_Compcode
提供的对象为有效的 3D 球体时返回 OvisC_Compcode_Success;否则返回 OvisC_Compcode_Failure。
头文件
ovis_decoration.h
详情
此函数返回 3D 球体球心的坐标。该 3D 位置与当前用于定位球体的方式一致(大地、地心、装饰偏移或入口)。
示例
OvisT_3D_Position pos;
OvisT_3D_Sphere * sphere;
/* … sphere created at some point */
Ovis_3D_Sphere_Center_Get (sphere, &pos);
错误
- Decoration 为 NIL。
- Decoration 不是 3D 球体。
- 球心位置的返回地址为 NIL。
参考
- 使用
Ovis_3D_Sphere_Center_Set()函数指定圆心。