Skip to content

Commit c4b6759

Browse files
authored
Merge pull request #16 from basdon/master
fix descriptions for inverse trigonometric functions in a_npc
2 parents 3c008db + 7f6c567 commit c4b6759

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

a_npc.inc

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -108,32 +108,32 @@ native KillTimer(timerid);
108108
/// <returns>Uptime of the actual server (not the SA-MP server).</returns>
109109
native GetTickCount();
110110

111-
/// <summary>Get the inversed value of a sine in radians.</summary>
111+
/// <summary>Get the inversed value of a sine in degrees.</summary>
112112
/// <param name="value">The sine for which to find the angle for</param>
113113
/// <seealso name="floatsin"/>
114-
/// <returns>The angle in radians.</returns>
114+
/// <returns>The angle in degrees.</returns>
115115
native Float:asin(Float:value);
116116

117-
/// <summary>Get the inversed value of a cosine in radians.</summary>
117+
/// <summary>Get the inversed value of a cosine in degrees.</summary>
118118
/// <param name="value">The cosine for which to find the angle for</param>
119119
/// <seealso name="floatcos"/>
120-
/// <returns>The angle in radians.</returns>
120+
/// <returns>The angle in degrees.</returns>
121121
native Float:acos(Float:value);
122122

123-
/// <summary>Get the inversed value of a tangent in radians.</summary>
123+
/// <summary>Get the inversed value of a tangent in degrees.</summary>
124124
/// <param name="value">The tangent for which to find the angle for</param>
125125
/// <seealso name="atan2"/>
126126
/// <seealso name="floattan"/>
127-
/// <returns>The angle in radians.</returns>
127+
/// <returns>The angle in degrees.</returns>
128128
native Float:atan(Float:value);
129129

130-
/// <summary>Get the multi-valued inversed value of a tangent in radians.</summary>
131-
/// <param name="x">x size</param>
130+
/// <summary>Get the multi-valued inversed value of a tangent in degrees.</summary>
132131
/// <param name="y">y size</param>
132+
/// <param name="x">x size</param>
133133
/// <seealso name="atan"/>
134134
/// <seealso name="floattan"/>
135-
/// <returns>The angle in radians.</returns>
136-
native Float:atan2(Float:x, Float:y);
135+
/// <returns>The angle in degrees.</returns>
136+
native Float:atan2(Float:y, Float:x);
137137

138138

139139
/// <summary>This will send a player text by the bot, just like using <a href="#SendPlayerMessageToAll">SendPlayerMessageToAll</a>, but this function is to be used inside the NPC scripts.</summary>

0 commit comments

Comments
 (0)