Function SimOneAPI::IsInsideLane
-
Defined in File SimOneHDMapAPI.h
Function Documentation
-
bool
SimOneAPI
::
IsInsideLane
(
const
SSD
::
SimPoint3D
&
inputPt
,
const
SSD
::
SimString
&
laneName
,
HDMapStandalone
::
MSideState
&
sideState
)
-
判断坐标点是否在车道内
Determine if the coordinate point is within the lane.
此函数用于检查指定的3D坐标点是否位于指定车道内,并提供该点是在车道的左侧、右侧还是内部的信息
This function is used to check whether a specified 3D location is inside the specified lane, and provides information on whether it is on the left side, right side, or inside the lane.
- 参数 :
-
-
inputPt – [in]
输入的3D位置
Input 3D location.
-
laneName – [in]
输入的车道ID,格式为roadId_sectionIndex_laneId
Input lane ID, formatted as roadId_sectionIndex_laneId.
-
sideState – [out]
指定点相对于车道的位置状态,如左侧、右侧或内部
sideState that specifies the relative position of the point as either outside left side, right side, or inside.
-
- 返回 :
-
如果指定点在指定车道内,则返回true,否则返回false
Returns true if the specified point is inside the specified lane, else returns false.