# Geometry (functions)

- [BIN_fnc_distanceToAreaBorder](../../functions/BIN_fnc_distanceToAreaBorder.md): 
- [BIS_fnc_dirTo](../../functions/BIS_fnc_dirTo.md): Function which returns vector direction from pos1 to pos2.
- [BIS_fnc_distance2D](../../functions/BIS_fnc_distance2D.md): Returns the distance between two objects or positions.
- [BIS_fnc_distance2Dsqr](../../functions/BIS_fnc_distance2Dsqr.md) **[deprecated]**: Returns the SQUARE of the distance between the two objects or positions "as the crow flies" (ignoring elevation).
- [BIS_fnc_getAngleDelta](../../functions/BIS_fnc_getAngleDelta.md): Returns the smallest difference between two angles in degrees.
- [BIS_fnc_getArea](../../functions/BIS_fnc_getArea.md): Extracts area information from trigger, marker, location or array
- [BIS_fnc_getIntersectionsUnderCursor](../../functions/BIS_fnc_getIntersectionsUnderCursor.md): Returns intersections under cursor. For more information see lineIntersectsSurfaces.
- [BIS_fnc_getLineDist](../../functions/BIS_fnc_getLineDist.md): Return the distance between two sections of a virtual straight line.
- [BIS_fnc_inAngleSector](../../functions/BIS_fnc_inAngleSector.md): Checks if a position lies within an angle sector.
- [BIS_fnc_isInFrontOf](../../functions/BIS_fnc_isInFrontOf.md): Check if an object is in front of another object (in the front 180°)
- [BIS_fnc_isInsideArea](../../functions/BIS_fnc_isInsideArea.md): Detects whether a position is within a square area of given size about center.
- [BIS_fnc_nearestPoint](../../functions/BIS_fnc_nearestPoint.md): Computes nearest point in a line.
- [BIS_fnc_randomPosIntersection](../../functions/BIS_fnc_randomPosIntersection.md): Returns random 2D position inside the intersection of two circles. [-1,-1] is returned if the circles do not intersect.
- [BIS_fnc_relativeDirTo](../../functions/BIS_fnc_relativeDirTo.md): Returns the relative direction from object 1 to object/position 2. Return value is always in between 0 and 360.
- [BIS_fnc_relPos](../../functions/BIS_fnc_relPos.md): Returns a position that is a specified distance and compass direction from the passed position or object.
- [BIS_fnc_relPosObject](../../functions/BIS_fnc_relPosObject.md): Place an object relative to another object, like a *setRelPos* command.
- [BIS_fnc_relScaledDist](../../functions/BIS_fnc_relScaledDist.md): Exponentially 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 in a trigger area an object is.
- [BIS_fnc_terrainGradAngle](../../functions/BIS_fnc_terrainGradAngle.md): Returns 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 plane to the terrain at the specified position in the specified direction.
