Explorar el Código

Merge pull request #27461 from avencherus/atan2-doc

Corrects small typo in atan2() documentation.
Rémi Verschelde hace 6 años
padre
commit
174b19f768
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      doc/classes/@GDScript.xml

+ 1 - 1
doc/classes/@GDScript.xml

@@ -127,7 +127,7 @@
 			<description>
 				Returns the arc tangent of [code]y/x[/code] in radians. Use to get the angle of tangent [code]y/x[/code]. To compute the value, the method takes into account the sign of both arguments in order to determine the quadrant.
 				[codeblock]
-				a = atan(0, -1) # a is 3.141593
+				a = atan2(0, -1) # a is 3.141593
 				[/codeblock]
 			</description>
 		</method>