Standardize all "Prints" comments in documentation

This commit is contained in:
Micky 2024-11-13 14:07:40 +01:00
parent 0f95e9f8e6
commit ca4b29b18d
19 changed files with 104 additions and 97 deletions

View file

@ -213,9 +213,9 @@
<description>
Creates a unit [Vector2] rotated to the given [param angle] in radians. This is equivalent to doing [code]Vector2(cos(angle), sin(angle))[/code] or [code]Vector2.RIGHT.rotated(angle)[/code].
[codeblock]
print(Vector2.from_angle(0)) # Prints (1.0, 0.0).
print(Vector2.from_angle(0)) # Prints (1.0, 0.0)
print(Vector2(1, 0).angle()) # Prints 0.0, which is the angle used above.
print(Vector2.from_angle(PI / 2)) # Prints (0.0, 1.0).
print(Vector2.from_angle(PI / 2)) # Prints (0.0, 1.0)
[/codeblock]
</description>
</method>