A method, device, and storage medium for adjusting parallelogram parameters
By receiving adjustment commands in office software and using arctangent and tangent functions to calculate, precise adjustment of parallelogram parameters is achieved, solving the problem of inefficiency in existing tools and improving adjustment efficiency.
Patent Information
- Application Number
- CN202010332546.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-04-24
- Publication Date
- 2025-07-29
- Estimated Expiration
- 2040-04-24
AI Technical Summary
Existing office software lacks precise adjustment methods when adjusting the acute angle of parallelograms. Users need to manually adjust the position of the adjustment point and judge the angle with the naked eye, which is inefficient.
By receiving adjustment commands, determine the adjustment point position parameters of the parallelogram or the angle parameters of the predetermined angle, calculate the precise adjustment angle using the arctangent and tangent functions, display the results and add the text box to display the angle value next to the predetermined angle.
Accurate adjustment of parallelogram parameters is achieved, adjustment efficiency is improved, and user dependence on manual operation and naked eye judgment is reduced.
Smart Images

Figure CN113553813B_ABST
Abstract
Description
Technical Field
[0001] This application relates to computer technology, and particularly to a method, device, and storage medium for adjusting parallelogram parameters. Background Art
[0002] When using office software such as WPS office or Microsoft office, sometimes it is necessary to precisely adjust the degree of an acute angle (lower left corner or upper right corner) of a parallelogram (for example, when making geometric courseware). However, existing tools do not provide a method for precisely adjusting the angle. Users need to manually adjust the position of adjustment point 1 and visually judge whether it is the required degree. If precision is required, operations such as making reference lines are needed, which is very inefficient and consumes a lot of time for users. Summary of the Invention
[0003] This application provides a method, device, and storage medium for adjusting parallelogram parameters, which can achieve the goal of precisely adjusting parallelogram parameters.
[0004] This application provides a method for adjusting parallelogram parameters, including: when receiving an adjustment command for a parallelogram, determining the corresponding parallelogram parameters according to the received adjustment command; the parallelogram adjustment parameters include: parallelogram adjustment point position parameters or angle parameters of a parallelogram's predetermined angle; when determining that the parameter to be adjusted is the angle parameter value of the parallelogram's predetermined angle, obtaining the adjustment point position parameters, determining the corresponding angle parameter of the predetermined angle according to the obtained adjustment point position parameters, and displaying it; when determining that the parameter to be adjusted is the adjustment point position parameter, obtaining the angle parameter of the input predetermined angle, and determining the corresponding adjustment point position parameter according to the obtained angle parameter of the predetermined angle.
[0005] In an exemplary embodiment, the angle parameter of the parallelogram's predetermined angle can be the degree of the angle or the radian of the angle.
[0006] In an exemplary embodiment, the predetermined angle is the lower left corner of the parallelogram, and the lower left corner is an acute angle; the determining the corresponding angle parameter of the predetermined angle according to the obtained adjustment point position parameters and displaying it includes: using the arctangent function to determine the radian; the calculation formula for the radian is: r = acrtan(s), where r represents the radian; s represents the adjustment point position parameter; converting the radian to an angle to obtain the radian conversion angle, and determining the complementary angle value of the radian conversion angle as the angle parameter of the predetermined angle corresponding to the adjustment point position parameter; the calculation formula for the complementary angle of the radian conversion angle is: α = 90 。-β, where a represents the complementary angle value of the radian conversion angle; β represents the radian conversion angle; add a text box beside the predetermined angle of the parallelogram, and assign the angle corresponding to the determined adjustment point position parameter to the angle parameter of the text box added to the predetermined angle.
[0007] In an exemplary embodiment, the predetermined angle is the lower left corner, and the lower left corner is an acute angle; determining the corresponding adjustment point position parameter according to the angle parameter of the obtained predetermined angle includes: determining the complementary angle of the angle according to the angle parameter of the obtained predetermined angle; the calculation formula for the complementary angle of the angle is α’ = 90 。 -β’, where α’ represents the complementary angle; β’ represents the angle parameter of the obtained predetermined angle; convert the determined complementary angle to radians, and use the tangent function to determine the adjustment point position parameter. The calculation formula for the adjustment point position parameter is s’ = tan(r’), where r’ represents the radians converted from the complementary angle; s’ represents the adjustment point position parameter.
[0008] In an exemplary embodiment, determining the corresponding parallelogram parameter according to the received adjustment command includes: when receiving an operation in which the user selects the parallelogram and drags the adjustment point position parameter, determining that the adjusted parameter is the angle parameter of the predetermined angle; when receiving a value input by the user, determining that the adjusted parameter is the adjustment point position parameter.
[0009] In an exemplary embodiment, the method further includes displaying a text box in a specified area of the parallelogram when receiving a selection of the parallelogram by the user; and deleting the text box displayed in the specified area of the parallelogram when receiving a cancellation of the selection of the parallelogram by the user.
[0010] An embodiment of the present application provides a parallelogram parameter adjustment device, including: an adjustment parameter determination module, configured to determine a corresponding parallelogram parameter according to the received adjustment command when receiving an adjustment command for the parallelogram; the parallelogram adjustment parameter includes: a parallelogram adjustment point position parameter or an angle parameter of a parallelogram predetermined angle; a first adjustment module, configured to obtain an adjustment point position parameter when determining that the adjusted parameter is the value of the angle parameter of the parallelogram predetermined angle, determine the corresponding angle parameter of the predetermined angle according to the obtained adjustment point position parameter, and display it; a second adjustment module, configured to obtain the angle parameter of the input predetermined angle when determining that the adjusted parameter is the adjustment point position parameter, and determine the corresponding adjustment point position parameter according to the obtained angle parameter of the predetermined angle.
[0011] In an exemplary embodiment, the predetermined angle is the lower left corner of the parallelogram, and the lower left corner is an acute angle; the first adjustment module is configured to determine and display the angle parameter of the corresponding predetermined angle according to the obtained adjustment point position parameter, which means that the first adjustment module uses the arctangent function to determine the radian; the calculation formula for the radian is: r = acrtan(s), where r represents the radian; s represents the adjustment point position parameter; the first adjustment module converts the radian to an angle to obtain a radian conversion angle, and determines that the complementary angle value of the radian conversion angle is the angle parameter of the predetermined angle corresponding to the adjustment point position parameter; the calculation formula for the complementary angle of the radian conversion angle is: α = 90 。 - β, where α represents the complementary angle value of the radian conversion angle; β represents the radian conversion angle; the first adjustment module adds a text box next to the predetermined angle of the parallelogram, and assigns the angle corresponding to the determined adjustment point position parameter to the text box added for the angle parameter of the predetermined angle.
[0012] In an exemplary embodiment, the predetermined angle is the lower left corner, and the lower left corner is an acute angle; the second adjustment module is configured to determine the corresponding adjustment point position parameter according to the obtained angle parameter of the predetermined angle, which means that the second adjustment module is configured to determine the complementary angle of the angle according to the obtained angle parameter of the predetermined angle; the calculation formula for the complementary angle of the angle is α' = 90 。 - β', where α' represents the complementary angle; β' represents the obtained angle parameter of the predetermined angle; the second adjustment module is configured to convert the determined complementary angle to a radian, and use the tangent function to determine the adjustment point position parameter, and the calculation formula for the adjustment point position parameter is s' = tan(r'), where r' represents the radian converted from the complementary angle; s' represents the adjustment point position parameter.
[0013] Generally, in the office software, the lower left corner of the parallelogram is an acute angle, so the above method is based on the case where the lower left corner is an acute angle. It can be understood that under the idea of this application, for the case of non-acute angles, the above parallelogram parameter values can still be obtained, which will not be elaborated here.
[0014] Compared with the related art, this application determines and accurately displays the angle of the predetermined angle through the position parameter of the adjustment point; this application can also accurately determine the position of the adjustment point according to the value of the predetermined angle input by the user.
[0015] Other features and advantages of this application will be described in the subsequent specification, and some will become obvious from the specification, or be understood by implementing this application. Other advantages of this application can be realized and obtained through the solutions described in the specification and the drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] The accompanying drawings are used to provide an understanding of the technical solution of the present application and form a part of the specification. Together with the embodiments of the present application, they are used to explain the technical solution of the present application and do not constitute a limitation to the technical solution of the present application.
[0017] Figure 1 It is a flowchart of the parallelogram parameter adjustment method for the embodiment of the present application;
[0018] Figure 2 It is a flowchart of the parallelogram predetermined angle adjustment method for the embodiment of the present application;
[0019] Figure 3 It is a flowchart of the parallelogram adjustment point adjustment method for the embodiment of the present application;
[0020] Figure 4 It is a schematic diagram of the parallelogram text deletion process for the embodiment of the present application;
[0021] Figure 5 It is a schematic diagram of the positions of various parameters of the parallelogram for the embodiment of the present application;
[0022] Figure 6 It is a schematic diagram of accurately displaying the angle at the lower left corner of the parallelogram for the embodiment of the present application;
[0023] Figure 7 It is a schematic diagram of inputting an angle value in the text box at the lower left corner of the parallelogram for the embodiment of the present application;
[0024] Figure 8 It is a schematic diagram of the parallelogram parameter adjustment device module for the embodiment of the present application. Detailed implementation manners
[0025] The present application describes multiple embodiments, but the description is exemplary rather than restrictive, and it will be obvious to those of ordinary skill in the art that there can be more embodiments and implementation solutions within the scope covered by the embodiments described in the present application. Although many possible feature combinations are shown in the accompanying drawings and discussed in the detailed implementation manners, many other combination ways of the disclosed features are also possible. Unless specifically restricted, any feature or element of any embodiment can be combined with any other feature or element in any other embodiment, or can replace any other feature or element in any other embodiment.
[0026] This application includes and contemplates combinations with features and elements known to those of ordinary skill in the art. The disclosed embodiments, features, and elements of this application may also be combined with any conventional features or elements to form unique inventive solutions defined by the claims. Any feature or element of any embodiment may also be combined with features or elements from other inventive solutions to form another unique inventive solution defined by the claims. Accordingly, it should be understood that any feature shown and / or discussed in this application may be implemented alone or in any suitable combination. Thus, the embodiments are not limited except as defined by the appended claims and their equivalents. Additionally, various modifications and changes may be made within the scope of the appended claims.
[0027] Furthermore, in describing representative embodiments, the specification may have presented the method and / or process as a particular sequence of steps. However, to the extent that the method or process does not depend on a particular order of the steps described herein, the method or process should not be limited to the specific order of steps described. As will be understood by those of ordinary skill in the art, other sequences of steps are possible. Accordingly, the specific order of steps set forth in the specification should not be construed as a limitation on the claims. Additionally, the claims directed to the method and / or process should not be limited to performing their steps in the order written, as those skilled in the art can readily understand that these orders may vary and still remain within the spirit and scope of the embodiments of this application.
[0028] As Figure 1 shown, the method for adjusting parallelogram parameters in the embodiments of this application includes the following operations:
[0029] S1. When a adjustment command for the parallelogram is received, determine the corresponding parallelogram parameters according to the received adjustment command; the parallelogram adjustment parameters include: parallelogram adjustment point position parameters or angle parameters of the parallelogram's predetermined angle;
[0030] S2. When it is determined that the parameter to be adjusted is the value of the angle parameter of the parallelogram's predetermined angle, obtain the adjustment point position parameters, and determine and display the angle parameter of the corresponding predetermined angle according to the obtained adjustment point position parameters;
[0031] S3. When it is determined that the parameter to be adjusted is the adjustment point position parameter, obtain the angle parameter of the input predetermined angle, and determine the corresponding adjustment point position parameter according to the obtained angle parameter of the predetermined angle.
[0032] The parallelogram adjustment point refers to the point that can adjust the angle of the parallelogram. For example, in the office software, after the user inserts a parallelogram graphic, when the user selects the parallelogram, a yellow point will appear in the upper left corner. This point can adjust the angle size of the parallelogram, and it is the adjustment point of the parallelogram.
[0033] The parameters of the parallelogram adjustment point include the parallelogram adjustment point value. Generally, in office software, the value of the parallelogram adjustment point refers to the ratio of the opposite side to the adjacent side of the complementary angle of its lower left corner. For example, Figure 5 as shown, the value of adjustment point s is the ratio of side length A to side length B.
[0034] In an exemplary embodiment, as Figure 2 shown, the predetermined angle is the lower left corner of the parallelogram. Determining the angle parameter of the corresponding predetermined angle according to the obtained adjustment point position parameter and displaying it includes:
[0035] Using the arctangent function to determine the radian; the calculation formula of the radian is: r = acrtan(s), where r represents the radian; s represents the adjustment point position parameter;
[0036] Converting the radian to an angle to obtain a radian conversion angle, and determining the complementary angle value of the radian conversion angle as the angle parameter of the predetermined angle corresponding to the adjustment point position parameter; the complementary angle calculation formula of the radian conversion angle is: α = 90 。 -β, where α represents the complementary angle value of the radian conversion angle; β represents the radian conversion angle.
[0037] In other embodiments, the angle parameter of the predetermined angle can also be the upper left corner, upper right corner, or lower right corner of the parallelogram. It can be understood that any angle value of the above three angles can be obtained by angle conversion.
[0038] In an exemplary embodiment, adding a text box beside the predetermined angle of the parallelogram, and assigning the angle corresponding to the obtained adjustment point position parameter to the text box added for the angle parameter of the predetermined angle. As Figure 6 shown, when the predetermined angle is the lower left corner of the parallelogram, adding a text box at the lower left corner to display the angle value of this angle.
[0039] In an exemplary embodiment, as Figure 3 shown, the predetermined angle is the lower left corner of the parallelogram. Determining the corresponding adjustment point position parameter according to the obtained angle parameter of the predetermined angle includes:
[0040] Determining the complementary angle of this angle according to the obtained angle parameter of the predetermined angle; the complementary angle calculation formula of this angle is α’ = 90. - β’, where α’ represents the complementary angle; β’ represents the obtained angle parameter of the predetermined angle;
[0041] Converting the determined complementary angle to a radian, and using the tangent function to determine the adjustment point position parameter. The adjustment point position parameter calculation formula is s’ = tan(r’), where r’ represents the radian converted from the complementary angle; s’ represents the adjustment point position parameter.
[0042] As shown Figure 7 in the figure, by adding a text box at the lower left corner of the parallelogram, the position of point s is adjusted according to the angle value entered by the user in the text box. If the angle entered by the user is 60, then point s is adjusted accordingly.
[0043] Similarly, in other embodiments, the angle parameter of the predetermined angle can also be the upper left corner, upper right corner, or lower right corner of the parallelogram. It can be understood that by obtaining the angle values of other corners of the parallelogram, the angle value of the lower left corner can be obtained through angle conversion.
[0044] In an exemplary embodiment, obtaining the angle parameter of the input predetermined angle includes: receiving the content entered by the user in the text box and determining whether it is a numerical value; if it is a numerical value, then obtaining the content as the angle parameter of the input predetermined angle.
[0045] In an exemplary embodiment, the determining the corresponding parallelogram parameters according to the received adjustment command includes: when receiving the operation of the user selecting the parallelogram and dragging to adjust the position parameter of the adjustment point, then determining the adjusted parameter as the angle parameter of the predetermined angle; when receiving the numerical value entered by the user, then determining the adjusted parameter as the position parameter of the adjustment point.
[0046] In other embodiments, other methods may also be used to determine the adjusted parameters, which are not limited in the embodiments of the present application. For example, the adjusted parameters can be selected through parameter adjustment options.
[0047] In an exemplary embodiment, as Figure 4 shown in the figure, the method further includes: when receiving the user's selection of the parallelogram, displaying a text box in the specified area of the parallelogram; when receiving the user's cancellation of the selection of the parallelogram, deleting the text box displayed in the specified area of the parallelogram.
[0048] As Figure 8 shown in the figure, the parallelogram parameter adjustment device of the present application includes:
[0049] An adjustment parameter determination module 10, configured to determine corresponding parallelogram parameters according to the received adjustment command when receiving an adjustment command for the parallelogram; the parallelogram adjustment parameters include: parallelogram adjustment point position parameters or parallelogram predetermined angle parameters;
[0050] A first adjustment module 20, configured to obtain the adjustment point position parameters when determining that the adjusted parameter is the angle parameter value of the parallelogram predetermined angle, determine the corresponding predetermined angle parameter according to the obtained adjustment point position parameters, and display it;
[0051] The second adjustment module 30 is configured to, when determining that the parameter to be adjusted is the adjustment point position parameter, obtain the angle parameter of the input predetermined angle, and determine the corresponding adjustment point position parameter according to the obtained angle parameter of the predetermined angle.
[0052] In an exemplary embodiment, the predetermined angle is the lower left corner of the parallelogram, and the lower left corner is an acute angle; the first adjustment module 20 is configured to determine and display the angle parameter of the corresponding predetermined angle according to the obtained adjustment point position parameter, which means:
[0053] The first adjustment module 20 uses the arctangent function to determine the radian; the calculation formula of the radian is: r = acrtan(s), where r represents the radian; s represents the adjustment point position parameter;
[0054] The first adjustment module 20 converts the radian into an angle to obtain a radian conversion angle, and determines that the complementary angle value of the radian conversion angle is the angle parameter of the predetermined angle corresponding to the adjustment point position parameter; the calculation formula of the complementary angle of the radian conversion angle is: α = 90 。 -β, where a represents the complementary angle value of the radian conversion angle; β represents the radian conversion angle;
[0055] The first adjustment module 20 adds a text box beside the predetermined angle of the parallelogram, and assigns the angle corresponding to the obtained adjustment point position parameter to the text box added for the angle parameter of the predetermined angle.
[0056] In an exemplary embodiment, the predetermined angle is the lower left corner, and the lower left corner is an acute angle; the second adjustment module 30 is configured to determine the corresponding adjustment point position parameter according to the obtained angle parameter of the predetermined angle, which means:
[0057] The second adjustment module 30 is configured to determine the complementary angle of the obtained angle parameter of the predetermined angle; the calculation formula of the complementary angle of the angle is α’ = 90 。 -β’, where α’ represents the complementary angle; β’ represents the obtained angle parameter of the predetermined angle;
[0058] The second adjustment module 30 is configured to convert the determined complementary angle into a radian, and use the tangent function to determine the adjustment point position parameter. The calculation formula of the adjustment point position parameter is s’ = tan(r’), where r’ represents the radian converted from the complementary angle; s’ represents the adjustment point position parameter.
[0059] An apparatus for adjusting parallelogram parameters according to an embodiment of the present application includes a processor and a memory, and a program for adjusting parallelogram parameters is stored in the memory; the processor is configured to read the program for adjusting parallelogram parameters and execute the method described in any one of the above.
[0060] An embodiment of the present application provides a computer storage medium, on which a computer program is stored, and wherein the computer program, when executed by a processor, implements the method as described above.
[0061] Those of ordinary skill in the art can understand that all or some of the steps in the methods disclosed above, and the functional modules / units in systems and devices, can be implemented as software, firmware, hardware, and appropriate combinations thereof. In the hardware implementation, the division between the functional modules / units mentioned above does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be executed by several physical components in cooperation. Some or all components may be implemented as software executed by a processor, such as a digital signal processor or a microprocessor, or be implemented as hardware, or be implemented as an integrated circuit, such as an application-specific integrated circuit. Such software can be distributed on a computer-readable medium, which can include a computer storage medium (or non-transitory medium) and a communication medium (or transitory medium). As is well known to those of ordinary skill in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information, such as computer-readable instructions, data structures, program modules, or other data. Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disks (DVDs) or other optical disk storage, magnetic cartridges, tapes, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store the desired information and can be accessed by a computer. In addition, as is well known to those of ordinary skill in the art, a communication medium typically contains computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transmission mechanism, and can include any information delivery medium.
Claims
1. A method for adjusting parallelogram parameters, characterized in that, Including: When receiving an adjustment command for a parallelogram, determining corresponding parallelogram parameters according to the received adjustment command; The parallelogram adjustment parameters include: parallelogram adjustment point position parameters or angle parameters of a parallelogram's predetermined angle; wherein, the parallelogram adjustment point refers to a point that can adjust the angle of the parallelogram; the determining of corresponding parallelogram parameters according to the received adjustment command includes: when receiving an operation where the user selects a parallelogram and drags the adjustment point position parameter, determining the parameter to be adjusted as the angle parameter of the predetermined angle; when receiving a value input by the user, determining the parameter to be adjusted as the adjustment point position parameter; When determining that the parameter to be adjusted is the angle parameter value of a parallelogram's predetermined angle, obtaining the adjustment point position parameter, determining the corresponding angle parameter of the predetermined angle according to the obtained adjustment point position parameter and displaying it; wherein, the determining of the corresponding angle parameter of the predetermined angle according to the obtained adjustment point position parameter and displaying it includes: adding a text box beside the predetermined angle of the parallelogram, and assigning the angle corresponding to the determined adjustment point position parameter to the text box added beside the predetermined angle; When determining that the parameter to be adjusted is the adjustment point position parameter, obtaining the angle parameter of the input predetermined angle, and determining the corresponding adjustment point position parameter according to the obtained angle parameter of the predetermined angle; Wherein, the method further includes: when receiving that the user selects a parallelogram, displaying a text box in the designated area of the parallelogram; when receiving that the user cancels the selection of the parallelogram, deleting the text box displayed in the designated area of the parallelogram; The predetermined angle is any one of the lower left corner, upper left corner, upper right corner, and lower right corner of the parallelogram; in the case where the predetermined angle is the lower left corner and the lower left corner is an acute angle: Determining and displaying the angle parameter of the corresponding predetermined angle according to the obtained adjustment point position parameter includes: using the arctangent function to determine the radian; the calculation formula of the radian is: r = acrtan(s), where r represents the radian and s represents the adjustment point position parameter; converting the radian into an angle to obtain a radian conversion angle, and determining the complementary angle value of the radian conversion angle as the angle parameter of the predetermined angle corresponding to the adjustment point position parameter; the complementary angle calculation formula of the radian conversion angle is: α = 90 。 - β, where a represents the complementary angle value of the radian conversion angle; β represents the radian conversion angle; Determining the corresponding adjustment point position parameter according to the angle parameter of the acquired predetermined angle includes: determining the complementary angle of the angle according to the angle parameter of the acquired predetermined angle; the calculation formula for the complementary angle of the angle is α’ = 90 。 -β’, where α’ represents the complementary angle; β’ represents the angle parameter of the acquired predetermined angle; converting the determined complementary angle into radians, and using the tangent function to determine the adjustment point position parameter. The calculation formula for the adjustment point position parameter is s’ = tan(r’), where r’ represents the radians converted from the complementary angle; s’ represents the adjustment point position parameter.
2. A parallelogram parameter adjustment device, characterized in that The device includes: An adjustment parameter determination module, configured to, when receiving an adjustment command for a parallelogram, determine corresponding parallelogram parameters according to the received adjustment command; the parallelogram adjustment parameters include: parallelogram adjustment point position parameters or angle parameters of a parallelogram's predetermined angle; wherein, the parallelogram adjustment point refers to a point that can adjust the angle of the parallelogram; the determining of corresponding parallelogram parameters according to the received adjustment command includes: when receiving an operation where the user selects a parallelogram and drags the adjustment point position parameter, determining the parameter to be adjusted as the angle parameter of the predetermined angle; when receiving a value input by the user, determining the parameter to be adjusted as the adjustment point position parameter; A first adjustment module, configured to, when determining that the parameter to be adjusted is the angle parameter value of a parallelogram's predetermined angle, obtain the adjustment point position parameter, determine the corresponding angle parameter of the predetermined angle according to the obtained adjustment point position parameter and display it, including: adding a text box beside the predetermined angle of the parallelogram, and assigning the angle corresponding to the determined adjustment point position parameter to the text box added beside the predetermined angle; and, when receiving that the user selects a parallelogram, displaying a text box in the designated area of the parallelogram; when receiving that the user cancels the selection of the parallelogram, deleting the text box displayed in the designated area of the parallelogram; The second adjustment module is configured to, when it is determined that the parameter to be adjusted is the adjustment point position parameter, obtain the angle parameter of the input predetermined angle, and determine the corresponding adjustment point position parameter according to the obtained angle parameter of the predetermined angle; wherein, the predetermined angle is any one of the lower left corner, upper left corner, upper right corner, and lower right corner of the parallelogram; in the case where the predetermined angle is the lower left corner and the lower left corner is an acute angle: The first adjustment module, which is used to determine and display the angular parameter of a corresponding predetermined angle according to the obtained adjustment point position parameter, means: using the arctangent function to determine the radian; the calculation formula of the radian is: r = acrtan(s), where r represents the radian; s represents the adjustment point position parameter; converting the radian to an angle to obtain a radian conversion angle, and determining the complementary angle value of the radian conversion angle as the angular parameter of the predetermined angle corresponding to the adjustment point position parameter; the complementary angle calculation formula of the radian conversion angle is: α = 90 。 - β, where a represents the complementary angle value of the radian conversion angle; β represents the radian conversion angle; The second adjustment module, which is used to determine the corresponding adjustment point position parameter according to the angle parameter of the acquired predetermined angle, means: determining the complementary angle of the angle according to the angle parameter of the acquired predetermined angle; the calculation formula for the complementary angle of the angle is α’ = 90 。 -β’, where α’ represents the complementary angle; β’ represents the angle parameter of the acquired predetermined angle; converting the determined complementary angle into radians, and using the tangent function to determine the adjustment point position parameter, the calculation formula for the adjustment point position parameter is s’ = tan(r’), where r’ represents the radians converted from the complementary angle; s’ represents the adjustment point position parameter.
3. A parallelogram parameter adjustment device, comprising a processor and a memory, characterized in that, The memory stores a program for parallelogram parameter adjustment; the processor is configured to read the program for parallelogram parameter adjustment and execute the method according to Claim 1.
4. A computer storage medium, on which a computer program is stored, characterized in that, When the computer program is executed by the processor, it implements the method according to Claim 1.
Citation Information
Patent Citations
Graphic display control device, graphic display control method, and storage medium having stored therein graphic display control program
US20160267691A1
Method and system for nonuniformly adjusting a predefined shape
US5426729A