Method and system for judging dragged moving direction
A technology for judging modules and offsets, applied in the field of dragging and moving, which can solve problems such as difficult expansion, large errors, and small quantities, and achieve the effects of high accuracy, small errors, and fast refresh
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0028] figure 2 It is a flow chart of a method for judging a dragging direction according to an embodiment of the present invention. Described method comprises the following steps:
[0029] S201, assigning a custom tangent table;
[0030] The assignment of the tangent table is determined according to the number n (n ≥ 2) of the direction in which the drag is moved. Here, for the convenience of understanding, 8 directions are taken as an example, such as Figure 4 As shown, tanTable={k*tan22.5°, k*tan67.5°}, where tanTable is a tangent table, 22.5° is the degree of 360° divided into 16 equal parts, and 67.5° is a 16 equal parts The sum of an angle and an 8th angle; where k is a positive integer, when the system does not support floating-point operations, k is infinite, and the assignment of each tangent value is generated by calling an external tool;
[0031] Similarly, cotangent, sine, cosine, secant, and cosecant trigonometric functions can be used to realize the assignme...
Embodiment 2
[0068] Figure 4 It is a structural diagram of a system for judging the direction of dragging according to the embodiment of the present invention.
[0069] The system includes: a tangent table initial module, a coordinate processing module, a quadrant judgment module, and a direction judgment module;
[0070] The tangent table initial module is connected with the coordinate processing module and the moving direction judgment module, and is used to assign a value to the tangent table according to the number of directions to be judged to be dragged, receive a request from the moving direction judgment module to obtain a tangent value, and send a qualified Tangent value to the moving direction judgment module;
[0071] Here, for the convenience of understanding, 8 directions are taken as examples, such as Figure 4 As shown, the quantity of the direction of dragging according to the judgment is 8, tanTable={k*tan22.5°, k*tan67.5°}, wherein tanTable is a tangent table, and 22.5...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com