Ovis_3D_Line_Endpoints_Set()
摘要
指定 3D 线的起点和终点位置。
语法
Ovis_3D_Line_Endpoints_Set (line_dec_ptr, from, to)
| 参数 | 类型 | 说明 |
|---|---|---|
line_dec_ptr |
OvisT_3D_Line * |
线 |
from |
OvisT_3D_Position |
指定线的起点 |
to |
OvisT_3D_Position |
指定线的终点 |
返回类型
OvisT_Compcode
若提供的对象是有效的线,返回 OvisC_Compcode_Success;否则返回 OvisC_Compcode_Failure。
头文件
ovis_decoration.h
详情
此函数指定 3D 线的起点和终点位置。该线可以是实线或分段线。
示例
OvisT_3D_Position from, to;
OvisT_3D_Line * line;
/* … .line created at some point */
/* Line from 100 to 200 meters above the Equator at the Greenwich line */
Ovis_3D_Position_Geodetic_Set (&from, 0, 0, 100);
Ovis_3D_Position_Geodetic_Set (&to, 0, 0, 200);
Ovis_3D_Line_Endpoints_Set (line, from, to);
错误
- Decoration 不是 3D 线。
- Decoration 为 NIL。
参考
- 使用函数
Ovis_3D_Line_Endpoints_Get()获取线的端点。