Math - Geometry
24 scripting commands. Also as Markdown for agents.
- acosArcCosine of a number, result in Degrees
- asinArcsine of a number, result in Degrees.
- atanReturns the arcus tangens.
- atan2ArcTangent of *y/x*. Used to determine the angle of a vector *[y,x]*. Result in Degrees between -180 and 180.
- atgReturns the arcus tangens.
- checkVisibilityChecks if one position is visible from another position and how much.
- cosCosine of a number, argument in degrees.
- degConverts given value in radians to degrees. 1 degree equals 0.01745 radians or pi / 180.
- distanceReturns a distance in meters between Objects, Positions or Locations.
- distance2DReturns a 2D distance (distance projected to X,Y plane) in meters between Objects and/or Positions.
- distanceSqrComputes the squared distance between two objects or positions. This command is faster than distance by saving a square root operation, useful for…
- intersectFinds named selections in object which are in specified LOD, intersected by given section of a line. Return value is in the form of [selection,…
- lineIntersectsChecks for object intersection with a virtual line between two positions. Since Arma 3 v2.20, there is an alternative syntax that does multiple…
- lineIntersectsObjsReturns a list of objects intersected by the line from *begPos* to *endPos*. Since Arma 3 v2.20, there is an alternative syntax that does multiple…
- lineIntersectsSurfacesReturns a list of intersections with surfaces and ground from *begPosASL* to *endPosASL*. Doesn't return intersection with sea surface. Works…
- lineIntersectsWithReturns objects intersecting with the virtual line from *begPos* to *endPos*. By default, the resulting array of intersecting objects is unsorted…
- pipi (180 degrees converted to Radians).
- radConverts given value in degrees to radians. 1 radian equals 180 degrees divided by pi.
- sinSine of x.
- tanTangent of x, argument in Degrees.
- terrainIntersectChecks for intersection of terrain between two AGL positions. Returns true if intersects with terrain. For ASL variant see terrainIntersectASL.
- terrainIntersectASLChecks for intersection of terrain between two ASL positions. Returns true if intersects with terrain. For AGL variant, see terrainIntersect.
- terrainIntersectAtASLChecks for intersection of terrain between two ASL positions. Same as terrainIntersectASL but returns the intersection ASL position.
- tgIdentical to tan