for example, (- 1) get 225
for example, (- 1) get 225
use arctan (y code x)
and judge which interval to be in according to the quadrant
$$ \ frac {180} {\ pi*arccos (\ frac {x} {\ sqrt {x ^ 2 + y ^ 2}})} $$
when y is negative, you need to subtract the above value from 360
use the trigonometric function tan = y code x
to inversely calculate the angle
and then judge the angle in the positive direction of the X axis (+ 0 , + 90 , + 180 , + 270 , respectively)
|
|
|
|
------------------------------
(-1,-1) |
|
|
|
Previous: Dynamic acquisition of src by image of weex
Next: If you want to implement the element-ui DatePicker date selector, you can only choose within 7 days.
the map of Tetris is implemented in a two-dimensional array, and squares are also implemented in arrays, but I just don t understand how maps interact with squares. is how to know where the square is on the map. Besides, although the two-dimensional ...
for example, if there is a set of numbers such as 1, 2, 5, 7, 11, 14, how can Filter come up with two sets of numbers: [1, 2] and [5, 6, 7, 7]? ask for advice ...
the original rule is as follows [1-9] {1} [0-9] {3} now I want to rule out the result of 2035. How do I write it? because I m in a hurry, I can t think for myself. Regularity is my weakness. Thank you! ...
there is no vue rich text with formulas, that is, formulas in mathematics, physics and chemistry ...
vue scaffolding code php back-end server language does not know how to get the content entered in the vue-quill-editor rich text editor api given to the official website I just say that new a quill and then use getContents (); to get the content how ...
as shown in the figure, if you want to do a login interception based on $api.getStorage ( userId ), the desired effect of is 1. Enter the page that can open the green box (main.html), but the other three in the red box cannot be opened directly (mes...
...
I m not familiar with the git command. I used vscode s git management tool to "undo the last commit " twice, but now I don t want to undo those commits. How can I restore them? ...
ask what is the development environment and language of short video playback software similar to Douyin requirements: if developers only have JAVA and front end now, what is the best development environment? is it okay to use Hbuilder s MUI? wi...
generate the corresponding loop based on the given number. If 2 is given, a double cycle is generated, and 3 is a triple cycle if 3 is given, then for (let i = 0; i < arr.length; iPP) { for (let j = 0; j < arr.length; jPP) { ...
for the first time, separate items from front and rear, don t laugh. this is the "account list " interface given by the backend. I installed axios but couldn t get the data. mounted:function () { var Authorization = getCookie( token ); axios...
there is a set of numbers, for example, 3, requires that the sum equal to 3 is selected from this group of numbers (3 added numbers). For example, the three added numbers cannot be the same (for example, 1: 1, 1: 1), and there is no order requirement fo...
< H2 > I want to change the red box in the picture to how many days ago < H2 > ...
< H2 > set up two tables as follows. How can curd change the two tables at the same time, that is, query the data of the two tables? in addition, do you use this method much in the actual project < H2 >? < H2 > my_class < H2 > CREATE TABLE `my_class`...
ask for help from seniors: if the long address is xxxx, Nanjing Road, Heping District, Tianjin how can it be dealt with by means of no manual intervention: Tianjin; Heping District; Nanjing Road; this kind of administrative division? because the inp...
...
< H2 > question < H2 > static content can be displayed, but content obtained by ajax cannot be displayed < H2 > app.js < H2 > commented to get user information wx.getSetting({ success: res => { if (res.authSe...
...
The backend now returns an address. You can download it by yourself if you open it directly in the browser, but how to download it with jsIE? What does the back end mean by using iframe? ...
I would like to ask the gods, what are the ways to get the data or pictures on a website? There is no example reference, I currently understand the method is the web crawler. ...