Enumerationmigueldeicaza.swiftgodot 0.45.0SwiftGodot
Operator
VisualShaderNodeFloatOp.swift:13enum Operator
Cases
case add
Sums two numbers using
a + b
.case sub
Subtracts two numbers using
a - b
.case mul
Multiplies two numbers using
a * b
.case div
Divides two numbers using
a / b
.case mod
Calculates the remainder of two numbers. Translates to
mod(a, b)
in the Godot Shader Language.case pow
Raises the
a
to the power ofb
. Translates topow(a, b)
in the Godot Shader Language.case max
Returns the greater of two numbers. Translates to
max(a, b)
in the Godot Shader Language.case min
Returns the lesser of two numbers. Translates to
min(a, b)
in the Godot Shader Language.case atan2
Returns the arc-tangent of the parameters. Translates to
atan(a, b)
in the Godot Shader Language.case step
Generates a step function by comparing
b
(x) toa
(edge). Returns 0.0 ifx
is smaller thanedge
and otherwise 1.0. Translates tostep(a, b)
in the Godot Shader Language.case enumSize
Represents the size of the
Operator
enum.
Other members in extension
Type members
Instance members
var `operator`: VisualShaderNodeFloatOp.Operator
An operator to be applied to the inputs. See
Operator
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.