Enumerationmigueldeicaza.swiftgodot 0.46.0SwiftGodot
Function
VisualShaderNodeVectorFunc.swift:19enum Function
Cases
case normalize
Normalizes the vector so that it has a length of
1
but points in the same direction.case saturate
Clamps the value between
0.0
and1.0
.case negate
Returns the opposite value of the parameter.
case reciprocal
Returns
1/vector
.case abs
Returns the absolute value of the parameter.
case acos
Returns the arc-cosine of the parameter.
case acosh
Returns the inverse hyperbolic cosine of the parameter.
case asin
Returns the arc-sine of the parameter.
case asinh
Returns the inverse hyperbolic sine of the parameter.
case atan
Returns the arc-tangent of the parameter.
case atanh
Returns the inverse hyperbolic tangent of the parameter.
case ceil
Finds the nearest integer that is greater than or equal to the parameter.
case cos
Returns the cosine of the parameter.
case cosh
Returns the hyperbolic cosine of the parameter.
case degrees
Converts a quantity in radians to degrees.
case exp
Base-e Exponential.
case exp2
Base-2 Exponential.
case floor
Finds the nearest integer less than or equal to the parameter.
case fract
Computes the fractional part of the argument.
case inverseSqrt
Returns the inverse of the square root of the parameter.
case log
Natural logarithm.
case log2
Base-2 logarithm.
case radians
Converts a quantity in degrees to radians.
case round
Finds the nearest integer to the parameter.
case roundeven
Finds the nearest even integer to the parameter.
case sign
Extracts the sign of the parameter, i.e. returns
-1
if the parameter is negative,1
if it’s positive and0
otherwise.case sin
Returns the sine of the parameter.
case sinh
Returns the hyperbolic sine of the parameter.
case sqrt
Returns the square root of the parameter.
case tan
Returns the tangent of the parameter.
case tanh
Returns the hyperbolic tangent of the parameter.
case trunc
Returns a value equal to the nearest integer to the parameter whose absolute value is not larger than the absolute value of the parameter.
case oneminus
Returns
1.0 - vector
.case max
Represents the size of the
Function
enum.
Other members in extension
Type members
Instance members
var function: VisualShaderNodeVectorFunc.Function
The function to be performed. 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.