0509
Jump to navigation
Jump to search
GET_DISTANCE_BETWEEN_COORDS_2D
- Description
- Gets the distance between two X and Y coordinate points
- Syntax
- 0509: [var] = distance_between_point [flt1] [flt2] and_point [flt3] [flt4]
- Parameter
- [flt1]
- X1-coordinate
- [flt2]
- Y1-coordinate
- [flt3]
- X2-coordinate
- [flt4]
- Y2-coordinate
- [var]
- Variable to store the distance, a floating-point value
- Native analog
- GET_DISTANCE_BETWEEN_COORDS_2D
This opcode gets the distance between two X and Y coordinate points. It uses the distance formula in rectangular coordinate system to calculate the distance between the points.
Keywords
get, store, distance, between, coords, coordinates, 2d
See also
050A, gets the distance between two X, Y, and Z coordinate points