Geometry
18 functions. Also as Markdown for agents.
- BIN_fnc_distanceToAreaBorder
- BIS_fnc_dirToFunction which returns vector direction from pos1 to pos2.
- BIS_fnc_distance2DReturns the distance between two objects or positions.
- BIS_fnc_distance2DsqrReturns the SQUARE of the distance between the two objects or positions "as the crow flies" (ignoring elevation).
- BIS_fnc_getAngleDeltaReturns the smallest difference between two angles in degrees.
- BIS_fnc_getAreaExtracts area information from trigger, marker, location or array
- BIS_fnc_getIntersectionsUnderCursorReturns intersections under cursor. For more information see lineIntersectsSurfaces.
- BIS_fnc_getLineDistReturn the distance between two sections of a virtual straight line.
- BIS_fnc_inAngleSectorChecks if a position lies within an angle sector.
- BIS_fnc_isInFrontOfCheck if an object is in front of another object (in the front 180°)
- BIS_fnc_isInsideAreaDetects whether a position is within a square area of given size about center.
- BIS_fnc_nearestPointComputes nearest point in a line.
- BIS_fnc_randomPosIntersectionReturns random 2D position inside the intersection of two circles. [-1,-1] is returned if the circles do not intersect.
- BIS_fnc_relativeDirToReturns the relative direction from object 1 to object/position 2. Return value is always in between 0 and 360.
- BIS_fnc_relPosReturns a position that is a specified distance and compass direction from the passed position or object.
- BIS_fnc_relPosObjectPlace an object relative to another object, like a *setRelPos* command.
- BIS_fnc_relScaledDistExponentially inflated rational number between 0 and 1, with 1 being center and 0 being edge of the trigger. This function can be used to check where…
- BIS_fnc_terrainGradAngleReturns the gradient angle (in radians) of the terrain at a specified position and a compass direction. It is an angle of the slope of a tangent…