@@ -142,6 +142,78 @@ procedure SDL_free(mem: Pointer); cdecl;
142142(* ** --- Math functions --- ***)
143143
144144
145+ (* *
146+ * Calculate the arc cosine of x;
147+ * that is, the value (in radians) whose cosine equals x.
148+ *
149+ * \since This function is available since SDL 2.0.4.
150+ *)
151+ function SDL_acos (x: cdouble): cdouble; cdecl;
152+ external SDL_LibName { $IFDEF DELPHI} { $IFDEF MACOS} name ' _SDL_acos' { $ENDIF} { $ENDIF} ;
153+
154+ (* *
155+ * Calculate the arc cosine of x;
156+ * that is, the value (in radians) whose cosine equals x.
157+ *
158+ * \since This function is available since SDL 2.0.8.
159+ *)
160+ function SDL_acosf (x: cfloat): cfloat; cdecl;
161+ external SDL_LibName { $IFDEF DELPHI} { $IFDEF MACOS} name ' _SDL_acosf' { $ENDIF} { $ENDIF} ;
162+
163+ (* *
164+ * Calculate the arc sine of x;
165+ * that is, the value (in radians) whose sine equals x.
166+ *
167+ * \since This function is available since SDL 2.0.4.
168+ *)
169+ function SDL_asin (x: cdouble): cdouble; cdecl;
170+ external SDL_LibName { $IFDEF DELPHI} { $IFDEF MACOS} name ' _SDL_asin' { $ENDIF} { $ENDIF} ;
171+
172+ (* *
173+ * Calculate the arc sine of x;
174+ * that is, the value (in radians) whose sine equals x.
175+ *
176+ * \since This function is available since SDL 2.0.8.
177+ *)
178+ function SDL_asinf (x: cfloat): cfloat; cdecl;
179+ external SDL_LibName { $IFDEF DELPHI} { $IFDEF MACOS} name ' _SDL_asinf' { $ENDIF} { $ENDIF} ;
180+
181+ (* *
182+ * Calculate the arc tangent of x;
183+ * that is, the value (in radians) whose tangent equals x.
184+ *
185+ * \since This function is available since SDL 2.0.4.
186+ *)
187+ function SDL_atan (x: cdouble): cdouble; cdecl;
188+ external SDL_LibName { $IFDEF DELPHI} { $IFDEF MACOS} name ' _SDL_atan' { $ENDIF} { $ENDIF} ;
189+
190+ (* *
191+ * Calculate the arc tangent of x;
192+ * that is, the value (in radians) whose tangent equals x.
193+ *
194+ * \since This function is available since SDL 2.0.8.
195+ *)
196+ function SDL_atanf (x: cfloat): cfloat; cdecl;
197+ external SDL_LibName { $IFDEF DELPHI} { $IFDEF MACOS} name ' _SDL_atanf' { $ENDIF} { $ENDIF} ;
198+
199+ (* *
200+ * Calculate the arc tangent of y/x, using the signs of the two arguments
201+ * to determine the quadrant of the result.
202+ *
203+ * \since This function is available since SDL 2.0.4.
204+ *)
205+ function SDL_atan2 (y, x: cdouble): cdouble; cdecl;
206+ external SDL_LibName { $IFDEF DELPHI} { $IFDEF MACOS} name ' _SDL_atan2' { $ENDIF} { $ENDIF} ;
207+
208+ (* *
209+ * Calculate the arc tangent of y/x, using the signs of the two arguments
210+ * to determine the quadrant of the result.
211+ *
212+ * \since This function is available since SDL 2.0.8.
213+ *)
214+ function SDL_atan2f (y, x: cfloat): cfloat; cdecl;
215+ external SDL_LibName { $IFDEF DELPHI} { $IFDEF MACOS} name ' _SDL_atan2f' { $ENDIF} { $ENDIF} ;
216+
145217(* *
146218 * Calculate the cosine of x, where x is given in radians.
147219 *
0 commit comments