forked from godotengine/godot
-
Notifications
You must be signed in to change notification settings - Fork 20
class_@gdscript
reduz edited this page Feb 23, 2014
·
13 revisions
Built-in GDScript functions.
- real sin ( real s )
- real cos ( real s )
- real tan ( real s )
- real sinh ( real s )
- real cosh ( real s )
- real tanh ( real s )
- real asin ( real s )
- real acos ( real s )
- real atan ( real s )
- real atan2 ( real x, real y )
- real sqrt ( real s )
- real fmod ( real x, real y )
- real fposmod ( real x, real y )
- real floor ( real s )
- real ceil ( real s )
- real round ( real s )
- real abs ( real s )
- real sign ( real s )
- real pow ( real x, real y )
- real log ( real s )
- real exp ( real s )
- real isnan ( real s )
- real isinf ( real s )
- real ease ( real s, real curve )
- real decimals ( real step )
- real stepify ( real s, real step )
- real lerp ( real a, real b, real c )
- real dectime ( real value, real amount, real step )
- Nil randomize ( )
- int rand ( )
- real randf ( )
- real rand_range ( real from, real to )
- Array rand_seed ( real seed )
- real deg2rad ( real deg )
- real rad2deg ( real rad )
- real linear2db ( real nrg )
- real db2linear ( real db )
- real max ( real a, real b )
- real min ( real a, real b )
- real clamp ( real val, real min, real max )
- int nearest_po2 ( int val )
- Object weakref ( Object obj )
- Object convert ( var what, int type )
- String str ( var what, var ... )
- String str ( var what, var ... )
- Nil print ( var what, var ... )
- Nil printt ( var what, var ... )
- Nil printerr ( var what, var ... )
- Nil printraw ( var what, var ... )
- Array range ( var ... )
- Dictionary inst2dict ( Object inst )
- Object dict2inst ( Dictionary dict )
- Nil print_stack ( )
This contains the list of built-in gdscript functions. Mostly math functions and other utilities. Everything else is expanded by objects.
- real atan2 ( real x, real y ) \ Arc-tangent that takes a 2D vector as argument, retuns the full -pi to +pi range.
- real fposmod ( real x, real y ) \ Module (remainder of x/y) that wraps equally in positive and negative.
- real ease ( real s, real curve ) \ Easing function, based on exponent. 0 is constant, 1 is linear, 0 to 1 is ease-in, 1+ is ease out. Negative values are in-out/out in.
- real rand_range ( real from, real to ) \ Random range.
- Array rand_seed ( real seed ) \ random from seed, pass a seed and an array with both number and new seed is returned.
- int nearest_po2 ( int val ) \ Return the nearest larger power of 2 for an integer.
- Object convert ( var what, int type ) \ Convert from a type to another in the best way possible. The "type" parameter uses the enum TYPE_* in Global Scope.
- String str ( var what, var ... ) \ Convert one or more arguments to strings in the best way possible.
- String str ( var what, var ... ) \ Convert one or more arguments to strings in the best way possible.
- Nil print ( var what, var ... ) \ Print one or more arguments to strings in the best way possible to a console line.
- Nil printerr ( var what, var ... ) \ Print one or more arguments to strings in the best way possible to standard error line.