Aircraft safety detection method and device
Through the modeling and safety distance calculation of the airport flight area, the dynamic distance monitoring the dynamic distance in real time solves the problem of difficulty monitoring the operating status of the aircraft and reducing safety risks in existing technologies, and realizes the effective methods and devices of aircraft safety detection.
Patent Information
- Application Number
- CN202411476336.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-22
- Publication Date
- 2025-01-24
AI Technical Summary
The prior art is difficult to effectively monitor the operation status of aircraft and cannot fully reduce the safety risks in airport flight areas.
By obtaining the dynamic set of aircraft in the airport flight area, the target aircraft is modeling, based on the modeling results of the modeling results, the scene operation rules of the airport flight area, and the data information of the aircraft, calculate the safe distance of the target aircraft When the dynamic distance is less than or equal to a safe distance, the danger warning information is sent.
It achieves effective monitoring of aircraft operating conditions and timely warnings, reduces safety risks in the airport flight area, ensures the safe operation of aircraft, and improves the operational efficiency of the airport flight area.
Smart Images

Figure CN119360689A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a method and device for aircraft safety detection. Background Art
[0002] The airport flight zone is the only place where flight missions start and end. Its safety is directly related to the safety of aircraft and personnel, as well as the normal operation of the airport. With the rapid development of the aviation industry and the continuous increase in the number of flights, the surface safety protection of the airport flight zone faces more and more challenges.
[0003] In the prior art, the location of an aircraft is acquired by installing a location acquisition device on the aircraft and the location is displayed. This solution can only provide the most basic monitoring effect on the operation of each aircraft. In order to provide more complete protection for the field safety of the airport flight zone, how to effectively monitor the operation of aircraft and reduce the safety risks of the airport flight zone has become an urgent problem to be solved. Summary of the invention
[0004] Based on the above problems, the present application provides a method and device for aircraft safety detection to effectively monitor the operating status of aircraft and reduce the safety risks of airport flight areas.
[0005] The present application discloses a method for aircraft safety detection, the method comprising:
[0006] Acquire a dynamic set of aircraft in an airport flight zone, and model a target aircraft in the dynamic set;
[0007] Based on the modeling results, the surface operation rules of the airport flight zone and the data information of the target aircraft, the safe distance of the target aircraft is obtained; the data information includes the aircraft type, speed and altitude;
[0008] Based on the modeling result, obtaining the dynamic distance between each of the target aircraft;
[0009] When the dynamic distance is less than or equal to the safety distance, a danger warning message is sent.
[0010] Optionally, the step of obtaining a dynamic set of aircraft in an airport flight zone includes:
[0011] Acquire the position information of each aircraft; the position information includes coordinates and wingspan information of the aircraft;
[0012] The elevation information of the position information is obtained, and the aircraft whose elevation information is located in the airport flight zone are dynamically selected to form the dynamic set.
[0013] Optionally, the modeling of the target aircraft in the dynamic set includes:
[0014] Obtain the maximum distance from the center point of the target aircraft to each vertex;
[0015] A safety model of the target aircraft is constructed with the maximum distance as a radius.
[0016] Optionally, obtaining the safe distance of the target aircraft based on the modeling result, the surface operation rules of the airport flight zone and the data information of the target aircraft includes:
[0017] Analyze the airport flight zone surface operation rules to obtain the operation direction and / or the maintained distance of the target aircraft; the maintained distance is the distance between the two aircraft in operation in the business rules;
[0018] According to the running direction and / or the maintained distance, and the data information, setting an initial safety distance of the target aircraft;
[0019] Calculating the minimum spatial distance between the center points of each of the security models in the vector direction;
[0020] The initial safety distance is combined with the minimum spatial distance to obtain the safety distance.
[0021] Optionally, obtaining the dynamic distance between each of the target aircraft based on the modeling result includes:
[0022] Taking the modeling results as points, obtaining longitude information, latitude information and altitude information of each point;
[0023] Based on the longitude information and the latitude information, the ground projection distance between the two points is calculated as the horizontal distance;
[0024] Taking the difference in height information between the two points as the vertical distance;
[0025] The spatial distance between the two points is calculated based on the horizontal distance and the vertical distance.
[0026] Based on the above-mentioned aircraft safety detection method, the present application also discloses an aircraft safety detection device, including: a modeling unit, a calculation unit and an early warning unit;
[0027] The modeling unit is used to obtain a dynamic set of aircraft in the airport flight zone and model a target aircraft in the dynamic set;
[0028] The calculation unit is used to obtain the safe distance of the target aircraft based on the modeling result, the surface operation rules of the airport flight zone and the data information of the target aircraft; the data information includes the aircraft type, speed and altitude;
[0029] The calculation unit is further used to obtain the dynamic distance between each of the target aircraft based on the modeling result;
[0030] The early warning unit is used to send danger early warning information when the dynamic distance is less than or equal to the safety distance.
[0031] Optionally, the modeling unit includes:
[0032] A position acquisition subunit, used to acquire the position information of each aircraft; the position information includes coordinates and wingspan information of the aircraft;
[0033] The set selection subunit is used to obtain the elevation information of the position information, and dynamically select the aircraft whose elevation information is located in the airport flight zone to form the dynamic set.
[0034] Optionally, the modeling unit includes:
[0035] A distance acquisition subunit, used to acquire the maximum distance from the center point of the target aircraft to each vertex;
[0036] The model building subunit is used to build a safety model of the target aircraft with the maximum distance as the radius.
[0037] Optionally, the computing unit includes:
[0038] An analysis subunit is used to analyze the airport flight zone surface operation rules to obtain the operation direction and / or the maintained distance of the target aircraft; the maintained distance is the distance between the two aircraft in operation in the business rules;
[0039] A setting subunit, configured to set an initial safety distance of the target aircraft according to the running direction and / or the maintained distance, and the data information;
[0040] A calculation subunit, used for calculating the minimum spatial distance between the center points of each of the security models in the vector direction;
[0041] A combining subunit is used to combine the initial safety distance with the minimum space distance to obtain the safety distance.
[0042] Optionally, the computing unit includes:
[0043] An information acquisition subunit, used to use the modeling results as points to acquire longitude information, latitude information and altitude information of each point;
[0044] A horizontal calculation subunit, used for calculating the ground projection distance between two points as the horizontal distance based on the longitude information and the latitude information;
[0045] A vertical calculation subunit, used for taking the difference of the height information between the two points as the vertical distance;
[0046] The spatial calculation subunit is used to calculate the spatial distance between the two points according to the horizontal distance and the vertical distance.
[0047] The present application discloses a method and device for aircraft safety detection. A dynamic set of aircraft in an airport flight zone is obtained, and a target aircraft therein is modeled. The operating conditions of real aircraft are simulated to monitor and manage the aircraft. Taking into account the surface operation rules of the airport flight zone, and based on the modeling results and the data information of the target aircraft, the safety distance of the target aircraft is obtained. At the same time, based on the modeling results, the dynamic distance between each target aircraft is obtained to effectively monitor the operating conditions of each aircraft. The aircraft safety detection is carried out in real time. When the dynamic distance is less than or equal to the safety distance, a danger warning message is sent, which enables the airport control personnel to command the aircraft to make adjustments in time, ensure the safe operation of the aircraft, and improve the operating efficiency of the airport flight zone. The method described in the present application is conducive to more perfect protection of the surface safety of the airport flight zone and reducing the safety risks of the airport flight zone. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.
[0049] Figure 1 A schematic diagram of a flow chart of a method for aircraft safety detection disclosed in an embodiment of the present application;
[0050] Figure 2 A flowchart of another method for aircraft safety detection disclosed in an embodiment of the present application;
[0051] Figure 3 A schematic diagram of the structure of an aircraft safety detection device disclosed in an embodiment of the present application. DETAILED DESCRIPTION
[0052] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0053] Embodiment 1: This application discloses a method for aircraft safety detection.
[0054] For details, please refer to Figure 1 The present embodiment discloses a method for aircraft safety detection, comprising the following steps:
[0055] Step 101: Obtain a dynamic set of aircraft in an airport flight zone, and model a target aircraft in the dynamic set.
[0056] In the method described in this embodiment, the position information of each aircraft is obtained. The position information may come from a position acquisition device provided on the aircraft, and the position information may specifically include coordinates and wingspan information of the aircraft. The wingspan information is the wingspan of the aircraft wing. In actual work, when performing position acquisition, the aircraft is usually understood as a point. When processing the distance between points, considering the wingspan of the aircraft wing can make the distance more accurate.
[0057] In the method described in this embodiment, the position of the aircraft in the air is not necessarily the same as the position projected on the ground, but there is a certain deviation. Therefore, as an optional method, after obtaining the position information, the elevation information corresponding to the ground coordinates of the aircraft can be used to determine whether the actual position of the aircraft is located in the airport flight area. Then, all aircraft located in the airport flight area are dynamically selected to form a dynamic set, and all aircraft in the dynamic set are used as target aircraft. Among them, the dynamic set indicates that the aircraft in the set are not fixed. When an aircraft is no longer located in the airport flight area, it is deleted from the dynamic set. Correspondingly, when an aircraft enters the airport flight area, it is added to the dynamic set.
[0058] In the method described in this embodiment, when modeling the target aircraft, the maximum distance from the center point of the target aircraft to each vertex can be obtained, and a safety model that can completely wrap the target aircraft is constructed with the maximum distance as the radius and the center point of the target aircraft as the center of the sphere.
[0059] Step 102: Based on the modeling results, the surface operation rules of the airport flight zone and the data information of the target aircraft, the safe distance of the target aircraft is obtained.
[0060] In the method described in this embodiment, the airport flight zone surface operation rules are the business rules stipulated by the airport itself, which include the direction of operation of the aircraft, the distance between two aircraft during operation, etc. For example, a certain airport stipulates that the operation direction of aircraft A is opposite to the operation direction of aircraft B. For another example, a certain airport stipulates that aircraft A and aircraft B must maintain a distance of not less than 500m during operation. Therefore, the airport flight zone surface operation rules described in this embodiment may vary for different airports, and may also vary due to the version of the airport business rules, and its content varies with the airport's business rules. This embodiment does not specifically limit the content of the airport flight zone surface operation rules. If the content is empty, the rules will not be considered.
[0061] In the method described in this embodiment, the data information of the aircraft includes the aircraft model, speed and altitude. After analyzing the airport flight zone surface operation rules, the running direction and / or the distance to be maintained of the target aircraft can be obtained. According to the airport flight zone surface operation rules and data information, the initial safety distance of the target aircraft can be set. Specifically, it can include the initial safety horizontal distance and the initial safety vertical distance.
[0062] In the method described in this embodiment, the minimum spatial distance in the vector direction between the center points of each safety model is calculated. The initial safety distance is combined with the minimum spatial distance to obtain a safety distance. The safety distance in the method described in this embodiment takes into account the initial safety distance and the calculated minimum spatial distance. Among them, as a combination rule, for example, the initial safety distance is that aircraft a and aircraft b must maintain a distance of not less than 500m during operation, and the calculated minimum spatial distance is 200m, then the initial safety distance is given priority, and the safety distance is determined to be 500m. Correspondingly, if the minimum spatial distance is 800m, the minimum spatial distance is given priority, and the safety distance is determined to be 800m. In actual work, there may also be other combination rules. This embodiment does not specifically limit the combination rules here, and it is sufficient to have the effect of comprehensively considering the initial safety distance and the minimum spatial distance.
[0063] Step 103: Based on the modeling result, the dynamic distance between each of the target aircraft is obtained.
[0064] In the method described in this embodiment, the modeling result is used as a point, and the longitude information, latitude information and altitude information of each point can be obtained through the broadcast automatic dependent surveillance system. Based on the longitude information and latitude information, the ground projection distance between the two points is calculated as the horizontal distance, and the difference in the altitude information between the two points is used as the vertical distance. According to the horizontal distance and the vertical distance, the spatial distance between the two points is calculated, that is, the dynamic distance in this embodiment.
[0065] In the method described in this embodiment, the dynamic distance means that the distance may be constantly changing. As time changes, the position of the aircraft may change, and the calculated dynamic distance will also change accordingly.
[0066] As an optional method, the Haversine formula is used to calculate the ground projection distance between two points. The formula is:
[0067]
[0068] Where d1 is the ground projection distance, r is the radius of the earth (about 6371 km), φ1 and φ2 are the latitudes of the two aircraft (converted to radians), △φ is the difference in latitude of the two aircraft, and △λ is the difference in longitude of the two aircraft.
[0069] As an optional method, the spatial distance between two points is calculated according to the Pythagorean theorem, and the formula is as follows:
[0070]
[0071] In the formula, d2 is the spatial distance and h is the vertical distance.
[0072] Step 104: When the dynamic distance is less than or equal to the safety distance, a danger warning message is sent.
[0073] In the method described in this embodiment, the dynamic distance obtained in real time is used to compare with the safety distance. When the dynamic distance reaches the safety distance, a danger warning message can be sent through methods including but not limited to text, voice, warning lights, etc. As an optional method, the danger warning message is used to remind airport control personnel of the impending risk of collision so that airport control personnel can control aircraft in the airport flight zone. As another optional method, the danger warning message may also include control information, that is, a control plan for aircraft in the airport flight zone, to assist airport control personnel in controlling. This embodiment does not specifically limit the form and content of the danger warning message, and it is sufficient to help airport control personnel control aircraft in the airport flight zone.
[0074] The method described in this embodiment only models the aircraft in the airport flight zone, reducing the amount of calculation and the cost of calculation. Analyzing the operating status of real aircraft in a simulated form and monitoring and managing the aircraft can achieve the effect of pre-control. And when calculating the safety distance, the surface operation rules of the airport flight zone are taken into account, which is flexible and portable. At the same time, the dynamic distance between each aircraft is obtained in real time, and the operating status of each aircraft can be continuously monitored. The method described in this embodiment performs real-time safety detection of aircraft. When the dynamic distance is less than or equal to the safety distance, a danger warning message is sent, which can help airport control personnel to timely and accurately command aircraft adjustments, reduce safety risks, ensure the safe operation of aircraft, and also improve the operating efficiency of the airport flight zone, and more perfectly protect the surface safety of the airport flight zone.
[0075] Embodiment 2: This application discloses another method for aircraft safety detection, please refer to Figure 2 The method described in this embodiment introduces the entire process of aircraft safety inspection.
[0076] Step 201: Obtain the location information of the first aircraft and determine whether the first aircraft is located in the airport flight zone. If yes, proceed to step 202. If no, repeat step 201.
[0077] Step 202: Model a first aircraft.
[0078] Step 203: According to the surface operation rules of the airport flight zone and the data information of the first aircraft, the initial safety distance of the first aircraft is set.
[0079] Step 204: Calculate the minimum spatial distance of the first aircraft according to the modeling result.
[0080] Step 205: Determine whether the minimum spatial distance is greater than or equal to the initial safety distance. If yes, proceed to step 206. If no, proceed to step 207.
[0081] In the method described in this embodiment, as an optional method, when the minimum spatial distance is equal to the initial safety distance, the values of the two distances are equal, and the initial safety distance can also be set as the safety distance, which is not specifically limited in this embodiment. Similarly, this step essentially means that this embodiment combines the minimum spatial distance and the initial safety distance to obtain the safety distance. The combination rule for judging the size here is also only an example. In actual use, other combination rules can also be used, which is not specifically limited in this embodiment.
[0082] Step 206: Set the minimum spatial distance as a safe distance.
[0083] Step 207: Set the initial safety distance as the safety distance.
[0084] Step 208: Based on the modeling results, the dynamic distance between the first aircraft and other aircraft in the airport flight zone is obtained.
[0085] Step 209: Determine whether the dynamic distance is less than or equal to the safety distance. If yes, proceed to step 210. If no, repeat step 209.
[0086] Step 210: Send danger warning information.
[0087] Based on the aircraft safety detection method disclosed in the above embodiment, this embodiment correspondingly discloses an aircraft safety detection device. Figure 3 , the aircraft safety detection device comprises: a modeling unit 301, a calculation unit 302 and an early warning unit 303;
[0088] The modeling unit 301 is used to obtain a dynamic set of aircraft in the airport flight zone and model a target aircraft in the dynamic set;
[0089] The calculation unit 302 is used to obtain the safety distance of the target aircraft based on the modeling result, the surface operation rules of the airport flight zone and the data information of the target aircraft; the data information includes the aircraft type, speed and altitude;
[0090] The calculation unit 302 is further used to obtain the dynamic distance between each of the target aircraft based on the modeling result;
[0091] The warning unit 303 is configured to send danger warning information when the dynamic distance is less than or equal to the safety distance.
[0092] Optionally, the modeling unit 301 includes:
[0093] A position acquisition subunit, used to acquire the position information of each aircraft; the position information includes coordinates and wingspan information of the aircraft;
[0094] The set selection subunit is used to obtain the elevation information of the position information, and dynamically select the aircraft whose elevation information is located in the airport flight zone to form the dynamic set.
[0095] Optionally, the modeling unit 301 includes:
[0096] A distance acquisition subunit, used to acquire the maximum distance from the center point of the target aircraft to each vertex;
[0097] The model building subunit is used to build a safety model of the target aircraft with the maximum distance as the radius.
[0098] Optionally, the calculation unit 302 includes:
[0099] An analysis subunit is used to analyze the airport flight zone surface operation rules to obtain the operation direction and / or the maintained distance of the target aircraft; the maintained distance is the distance between the two aircraft in operation in the business rules;
[0100] A setting subunit, configured to set an initial safety distance of the target aircraft according to the running direction and / or the maintained distance, and the data information;
[0101] A calculation subunit, used for calculating the minimum spatial distance between the center points of each of the security models in the vector direction;
[0102] A combining subunit is used to combine the initial safety distance with the minimum space distance to obtain the safety distance.
[0103] Optionally, the calculation unit 302 includes:
[0104] An information acquisition subunit, used to use the modeling results as points to acquire longitude information, latitude information and altitude information of each point;
[0105] A horizontal calculation subunit, used for calculating the ground projection distance between two points as the horizontal distance based on the longitude information and the latitude information;
[0106] A vertical calculation subunit, used for taking the difference of the height information between the two points as the vertical distance;
[0107] The spatial calculation subunit is used to calculate the spatial distance between the two points according to the horizontal distance and the vertical distance.
[0108] The embodiments in this specification are described in a progressive manner. As for the devices disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the description is relatively simple, and the relevant parts can be referred to the description of the methods.
[0109] It should also be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0110] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0111] The features described in the embodiments of this specification can be replaced or combined with each other, so that professional and technical personnel in this field can implement or use the present application.
[0112] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A method for aircraft safety detection, characterized in that: include: Acquire a dynamic set of aircraft in an airport flight zone, and model a target aircraft in the dynamic set; Based on the modeling results, the surface operation rules of the airport flight zone and the data information of the target aircraft, the safe distance of the target aircraft is obtained; the data information includes the aircraft type, speed and altitude; Based on the modeling result, obtaining the dynamic distance between each of the target aircraft; When the dynamic distance is less than or equal to the safety distance, a danger warning message is sent.
2. The method according to claim 1, characterized in that The step of obtaining a dynamic set of aircraft in an airport flight zone includes: Acquire the position information of each aircraft; the position information includes coordinates and wingspan information of the aircraft; The elevation information of the location is obtained, and the aircraft whose elevation information is located in the airport flight zone are dynamically selected to form the dynamic set.
3. The method according to claim 1, characterized in that The modeling of the target aircraft in the dynamic set includes: Obtain the maximum distance from the center point of the target aircraft to each vertex; A safety model of the target aircraft is constructed with the maximum distance as a radius.
4. The method according to claim 3, characterized in that The step of obtaining the safe distance of the target aircraft based on the modeling result, the surface operation rules of the airport flight zone and the data information of the target aircraft includes: Analyze the airport flight zone surface operation rules to obtain the operation direction and / or the maintained distance of the target aircraft; the maintained distance is the distance between the two aircraft in operation in the business rules; According to the running direction and / or the maintained distance, and the data information, setting an initial safety distance of the target aircraft; Calculating the minimum spatial distance between the center points of each of the security models in the vector direction; The initial safety distance is combined with the minimum spatial distance to obtain the safety distance.
5. The method according to claim 1, characterized in that The obtaining of the dynamic distance between each of the target aircraft based on the modeling result includes: Taking the modeling results as points, obtaining longitude information, latitude information and altitude information of each point; Based on the longitude information and the latitude information, the ground projection distance between the two points is calculated as the horizontal distance; Taking the difference in height information between the two points as the vertical distance; The spatial distance between the two points is calculated based on the horizontal distance and the vertical distance.
6. An aircraft safety detection device, characterized in that: include: Modeling unit, calculation unit and early warning unit; The modeling unit is used to obtain a dynamic set of aircraft in the airport flight zone and model a target aircraft in the dynamic set; The calculation unit is used to obtain the safe distance of the target aircraft based on the modeling result, the surface operation rules of the airport flight zone and the data information of the target aircraft; the data information includes the aircraft type, speed and altitude; The calculation unit is further used to obtain the dynamic distance between each of the target aircraft based on the modeling result; The early warning unit is used to send danger early warning information when the dynamic distance is less than or equal to the safety distance.
7. The device according to claim 6, characterized in that The modeling unit comprises: A position acquisition subunit, used to acquire the position information of each aircraft; the position information includes coordinates and wingspan information of the aircraft; The set selection subunit is used to obtain the elevation information of the position information, and dynamically select the aircraft whose elevation information is located in the airport flight zone to form the dynamic set.
8. The device according to claim 6, characterized in that The modeling unit comprises: A distance acquisition subunit, used to acquire the maximum distance from the center point of the target aircraft to each vertex; The model building subunit is used to build a safety model of the target aircraft with the maximum distance as the radius.
9. The device according to claim 8, characterized in that The computing unit comprises: An analysis subunit is used to analyze the airport flight zone surface operation rules to obtain the operation direction and / or the maintained distance of the target aircraft; the maintained distance is the distance between the two aircraft in operation in the business rules; A setting subunit, configured to set an initial safety distance of the target aircraft according to the running direction and / or the maintained distance, and the data information; A calculation subunit, used for calculating the minimum spatial distance between the center points of each of the security models in the vector direction; A combining subunit is used to combine the initial safety distance with the minimum space distance to obtain the safety distance.
10. The device according to claim 6, characterized in that The computing unit comprises: An information acquisition subunit, used to use the modeling results as points to acquire longitude information, latitude information and altitude information of each point; A horizontal calculation subunit, used for calculating the ground projection distance between two points as the horizontal distance based on the longitude information and the latitude information; A vertical calculation subunit, used for taking the difference of the height information between the two points as the vertical distance; The spatial calculation subunit is used to calculate the spatial distance between the two points according to the horizontal distance and the vertical distance.