Enumerationmigueldeicaza.swiftgodot 0.46.0SwiftGodot
Function
VisualShaderNodeFloatFunc.swift:19enum Function
Cases
case sin
Returns the sine of the parameter. Translates to
sin(x)
in the Godot Shader Language.case cos
Returns the cosine of the parameter. Translates to
cos(x)
in the Godot Shader Language.case tan
Returns the tangent of the parameter. Translates to
tan(x)
in the Godot Shader Language.case asin
Returns the arc-sine of the parameter. Translates to
asin(x)
in the Godot Shader Language.case acos
Returns the arc-cosine of the parameter. Translates to
acos(x)
in the Godot Shader Language.case atan
Returns the arc-tangent of the parameter. Translates to
atan(x)
in the Godot Shader Language.case sinh
Returns the hyperbolic sine of the parameter. Translates to
sinh(x)
in the Godot Shader Language.case cosh
Returns the hyperbolic cosine of the parameter. Translates to
cosh(x)
in the Godot Shader Language.case tanh
Returns the hyperbolic tangent of the parameter. Translates to
tanh(x)
in the Godot Shader Language.case log
Returns the natural logarithm of the parameter. Translates to
log(x)
in the Godot Shader Language.case exp
Returns the natural exponentiation of the parameter. Translates to
exp(x)
in the Godot Shader Language.case sqrt
Returns the square root of the parameter. Translates to
sqrt(x)
in the Godot Shader Language.case abs
Returns the absolute value of the parameter. Translates to
abs(x)
in the Godot Shader Language.case sign
Extracts the sign of the parameter. Translates to
sign(x)
in the Godot Shader Language.case floor
Finds the nearest integer less than or equal to the parameter. Translates to
floor(x)
in the Godot Shader Language.case round
Finds the nearest integer to the parameter. Translates to
round(x)
in the Godot Shader Language.case ceil
Finds the nearest integer that is greater than or equal to the parameter. Translates to
ceil(x)
in the Godot Shader Language.case fract
Computes the fractional part of the argument. Translates to
fract(x)
in the Godot Shader Language.case saturate
Clamps the value between
0.0
and1.0
usingmin(max(x, 0.0), 1.0)
.case negate
Negates the
x
using-(x)
.case acosh
Returns the arc-hyperbolic-cosine of the parameter. Translates to
acosh(x)
in the Godot Shader Language.case asinh
Returns the arc-hyperbolic-sine of the parameter. Translates to
asinh(x)
in the Godot Shader Language.case atanh
Returns the arc-hyperbolic-tangent of the parameter. Translates to
atanh(x)
in the Godot Shader Language.case degrees
Convert a quantity in radians to degrees. Translates to
degrees(x)
in the Godot Shader Language.case exp2
Returns 2 raised by the power of the parameter. Translates to
exp2(x)
in the Godot Shader Language.case inverseSqrt
Returns the inverse of the square root of the parameter. Translates to
inversesqrt(x)
in the Godot Shader Language.case log2
Returns the base 2 logarithm of the parameter. Translates to
log2(x)
in the Godot Shader Language.case radians
Convert a quantity in degrees to radians. Translates to
radians(x)
in the Godot Shader Language.case reciprocal
Finds reciprocal value of dividing 1 by
x
(i.e.1 / x
).case roundeven
Finds the nearest even integer to the parameter. Translates to
roundEven(x)
in the Godot Shader Language.case trunc
Returns a value equal to the nearest integer to
x
whose absolute value is not larger than the absolute value ofx
. Translates totrunc(x)
in the Godot Shader Language.case oneminus
Subtracts scalar
x
from 1 (i.e.1 - x
).case max
Represents the size of the
Function
enum.
Other members in extension
Type members
Instance members
var function: VisualShaderNodeFloatFunc.Function
A function to be applied to the scalar. See
Function
for options.
Citizens in SwiftGodot
Conformances
protocol CaseIterable
A type that provides a collection of all of its values.
protocol CustomDebugStringConvertible
A type with a customized textual representation suitable for debugging purposes.
protocol Equatable
A type that can be compared for value equality.
protocol Hashable
A type that can be hashed into a
Hasher
to produce an integer hash value.protocol RawRepresentable<RawValue>
A type that can be converted to and from an associated raw value.
Type members
Instance members
var debugDescription: String
A textual representation of this instance, suitable for debugging
Type features
static func != (lhs: Self, rhs: Self
) -> Bool Returns a Boolean value indicating whether two values are not equal.