Function SimOneAPI::GetHeights

Function Documentation

bool SimOneAPI :: GetHeights ( const SSD :: SimPoint3D & inputPt , const double & radius , SSD :: SimVector < double > & heights , SSD :: SimVector < long > & roadIds , SSD :: SimVector < bool > & insideRoadStates )

获取路网指定坐标点的高程列表

Get the elevation list for the specified coordinate point in the road network.

此函数用于获取输入点半径范围内的高程列表。这个点可能与多个不同高度的道路垂直交叉,例如在高速公路或隧道上

This function is used to get a list of heights in the radius area of an input point, which may intersect vertically with multiple roads at different heights, e.g., on highways or in tunnels.

参数 :
  • inputPt [in]

    输入的3D位置

    Input 3D location.

  • radius [out]

    检测范围的半径

    Radius indicates how far away to detect in a circle. It should be set larger than 3 meters in length. Setting it as 3 meters is recommended.

  • heights [out]

    返回的高程/一个高程

    Returns heights/one height.

  • roadIds [out]

    返回高程所依据的道路ID

    Returns the road IDs that the target height is based on.

  • insideRoadStates [out]

    返回输入点是否在目标道路内

    Returns whether the input point is inside the target roads or not.

返回 :

如果找到任何高程则返回true,否则返回false

Returns true if any height is found, else returns false.