ä¸è§é¢æ°ã®æ£æ¥tanï¼ã¿ã³ã¸ã§ã³ãï¼ã¯ãã¤Ïï¼90°ï¼ã§ç¡éã«ãªã£ã¦ãã¾ãã®ã§ä½¿ãã«ããã®ã§ãããéæ£æ¥atan2ï¼ã¢ã¼ã¯ã¿ã³ã¸ã§ã³ã2ï¼ã¯ãã¤ã³ã(ï½ãï½)㨠x 軸ã«ãã£ã¦è¡¨ããããã¯ãã«ã®è§åº¦(θ)ãè¿ãã¾ããã¤ã¾ãä½ç½®ããè§åº¦ãå²ãåºããã¨ãåºæ¥ãã®ã§ãã è§åº¦ã¯ãy ã x ã§å²ã£ãè§åº¦ã§ã-ÏããÏã®ç¯å²ã®å®æ°ã¨ãªãã¾ãã å®ä¾ ç¢å°ã常ã«âãæã示ãã¾ãã ç¢å°ã®ãå転ãè§åº¦ã¯ã¬ã¤ã¤ã¼[Green]ã®ä½ç½®ãã³ã³ããã¼ã«ãã¦ãã¾ãã ç¢å°ã¬ã¤ã¤ã¼ã®ãå転ãã«æ¬¡ã®å¼ãæ¸ãã¾ãã a=thisComp.layer("Green").position-position; angle=Math.atan2(a[1],a[0]); radiansToDegrees(angle) 解説 å§ãã«[ç¢å°ã®ä½ç½®]ãã[ã°ãªã¼ã³ã®ä½ç½®]ã¸ã®ãã¯ãã«ãæ±ãã¦å¤æ°[a]ã«ä»£å
¥ã 次ã«[ atan2(
{{#tags}}- {{label}}
{{/tags}}