VisualScriptBuiltinFunc.BuiltinFunc

Values

ValueMeaning
mathSin0

Return the sine of the input.

mathCos1

Return the cosine of the input.

mathTan2

Return the tangent of the input.

mathSinh3

Return the hyperbolic sine of the input.

mathCosh4

Return the hyperbolic cosine of the input.

mathTanh5

Return the hyperbolic tangent of the input.

mathAsin6

Return the arc sine of the input.

mathAcos7

Return the arc cosine of the input.

mathAtan8

Return the arc tangent of the input.

mathAtan29

Return the arc tangent of the input, using the signs of both parameters to determine the exact angle.

mathSqrt10

Return the square root of the input.

mathFmod11

Return the remainder of one input divided by the other, using floating-point numbers.

mathFposmod12

Return the positive remainder of one input divided by the other, using floating-point numbers.

mathFloor13

Return the input rounded down.

mathCeil14

Return the input rounded up.

mathRound15

Return the input rounded to the nearest integer.

mathAbs16

Return the absolute value of the input.

mathSign17

Return the sign of the input, turning it into 1, -1, or 0. Useful to determine if the input is positive or negative.

mathPow18

Return the input raised to a given power.

mathLog19

Return the natural logarithm of the input. Note that this is not the typical base-10 logarithm function calculators use.

mathExp20

Return the mathematical constant e raised to the specified power of the input. e has an approximate value of 2.71828.

mathIsnan21

Return whether the input is NaN (Not a Number) or not. NaN is usually produced by dividing 0 by 0, though other ways exist.

mathIsinf22

Return whether the input is an infinite floating-point number or not. Infinity is usually produced by dividing a number by 0, though other ways exist.

mathEase23

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.

mathDecimals24

Return the number of digit places after the decimal that the first non-zero digit occurs.

mathStepify25

Return the input snapped to a given step.

mathLerp26

Return a number linearly interpolated between the first two inputs, based on the third input. Uses the formula a + (a - b) * t.

mathInverseLerp27
mathRangeLerp28
mathMoveToward29

Moves the number toward a value, based on the third input.

mathDectime30

Return the result of value decreased by step * amount.

mathRandomize31

Randomize the seed (or the internal state) of the random number generator. Current implementation reseeds using a number based on time.

mathRand32

Return a random 32 bits integer value. To obtain a random value between 0 to N (where N is smaller than 2^32 - 1), you can use it with the remainder function.

mathRandf33

Return a random floating-point value between 0 and 1. To obtain a random value between 0 to N, you can use it with multiplication.

mathRandom34

Return a random floating-point value between the two inputs.

mathSeed35

Set the seed for the random number generator.

mathRandseed36

Return a random value from the given seed, along with the new seed.

mathDeg2rad37

Convert the input from degrees to radians.

mathRad2deg38

Convert the input from radians to degrees.

mathLinear2db39

Convert the input from linear volume to decibel volume.

mathDb2linear40

Convert the input from decibel volume to linear volume.

mathPolar2cartesian41

Converts a 2D point expressed in the polar coordinate system (a distance from the origin r and an angle th) to the cartesian coordinate system (X and Y axis).

mathCartesian2polar42

Converts a 2D point expressed in the cartesian coordinate system (X and Y axis) to the polar coordinate system (a distance from the origin and an angle).

mathWrap43
mathWrapf44
logicMax45

Return the greater of the two numbers, also known as their maximum.

logicMin46

Return the lesser of the two numbers, also known as their minimum.

logicClamp47

Return the input clamped inside the given range, ensuring the result is never outside it. Equivalent to min(max(input, range_low), range_high).

logicNearestPo248

Return the nearest power of 2 to the input.

objWeakref49

Create a WeakRef from the input.

funcFuncref50

Create a FuncRef from the input.

typeConvert51

Convert between types.

typeOf52

Return the type of the input as an integer. Check Variant.type for the integers that might be returned.

typeExists53

Checks if a type is registered in the ClassDB.

textChar54

Return a character with the given ascii value.

textStr55

Convert the input to a string.

textPrint56

Print the given string to the output window.

textPrinterr57

Print the given string to the standard error output.

textPrintraw58

Print the given string to the standard output, without adding a newline.

varToStr59

Serialize a Variant to a string.

strToVar60

Deserialize a Variant from a string serialized using constant VAR_TO_STR.

varToBytes61

Serialize a Variant to a PoolByteArray.

bytesToVar62

Deserialize a Variant from a PoolByteArray serialized using constant VAR_TO_BYTES.

colorn63

Return the Color with the given name and alpha ranging from 0 to 1. Note: Names are defined in color_names.inc.

mathSmoothstep64

Return a number smoothly interpolated between the first two inputs, based on the third input. Similar to constant MATH_LERP, but interpolates faster at the beginning and slower at the end. Using Hermite interpolation formula:

var t = clamp((weight - from) / (to - from), 0.0, 1.0) return t * t * (3.0 - 2.0 * t)

mathPosmod65
mathLerpAngle66
textOrd67
funcMax68

Represents the size of the builtinfunc enum.

Meta