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

Inactive Publication Date: 2011-04-13
融创天下(上海)科技发展有限公司
View PDF3 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The purpose of the embodiments of the present invention is to propose a method and system for judging the direction of dragging, aiming at solving the problems in the prior art that the number of directions for judging the direction of dragging is small, the error is large, the refresh is slow, and it is not easy to expand

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and system for judging dragged moving direction
  • Method and system for judging dragged moving direction
  • Method and system for judging dragged moving direction

Examples

Experimental program
Comparison scheme
Effect test

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...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a method and system for judging a dragged moving direction, which are used for judging the dragged moving direction by using n directions, wherein 2n included angles are contained, the judging error on the dragged moving direction is within an included angle of 360 degrees / 2n, the n can be infinitely expanded, and the larger the n is, the error is smaller and the dragged moving direction is more accurate. The method comprises the following steps of: calculating the tangent value of coordinate offset, and then comparing the tangent value with a value in a tangent table,thereby determining the dragged moving direction. The method has favorable expansibility and generality, and can be used for accurately judge the dragged moving direction.

Description

technical field [0001] The invention relates to the field of dragging direction, in particular to a method and system for judging dragging direction. Background technique [0002] When a terminal platform user drags from a certain point to another point on a screen to view the specific screen of this point area, it is usually necessary to judge the dragging direction, and obtain and change the screen according to the moving direction and offset. In the prior art, movement in four directions (up, down, left, and right) is generally realized, that is, the direction of the coordinate axis, such as figure 1 As shown, the four included angles formed by the coordinate axes are divided into two equal parts, that is, the straight lines AB and CD are represented by dotted lines. The user drags from point O to another point that falls within the angle formed by straight lines AB and CD. In the angle AOC formed by the straight line AB and CD, it is determined that the direction of th...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F3/048G06F3/041G06F3/0488
CPCG06F3/0416G06F3/04883
Inventor 宋叶祥
Owner 融创天下(上海)科技发展有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products