// IsPointInAngledArea
BOOL IS_POINT_IN_ANGLED_AREA(float xPos, float yPos, float zPos, float x1, float y1, float z1, float x2, float y2, float z2, float width, BOOL p10, BOOL includez);
Parameters:- xPos:
The x coordinate.
- yPos:
The y coordinate.
- zPos:
The z coordinate.
- x1:
X dimension of the angled area 'origin'
- y1:
Y dimension of the angled area 'origin'
- z1:
Z dimension of the angled area 'origin'
- x2:
X dimension of the angled area 'extent'
- y2:
Y dimension of the angled area 'extent'
- z2:
Z dimension of the angled area 'extent'
- width:
Width of the angled area
- p10:
a debug flag invoking functions in the same path as DRAW_MARKER
- includez:
If true, include the Z dimension when doing the height check; otherwise the query becomes two-dimensional
An angled area is an X-Z oriented rectangle with three parameters:
- origin: the mid-point along a base edge of the rectangle;
- extent: the mid-point of opposite base edge on the other Z;
- width: the length of the base edge; (named derived from logging strings
CNetworkRoadNodeWorldStateData
).
The oriented rectangle can then be derived from the direction of the two points (norm(origin - extent)
), its orthonormal, and the width, e.g:
- golf_mp
- am_taxi