Enumerationmigueldeicaza.swiftgodot 0.46.0SwiftGodot
Operator
VisualShaderNodeVectorOp.swift:19enum Operator
Cases
case add
Adds two vectors.
case sub
Subtracts a vector from a vector.
case mul
Multiplies two vectors.
case div
Divides vector by vector.
case mod
Returns the remainder of the two vectors.
case pow
Returns the value of the first parameter raised to the power of the second, for each component of the vectors.
case max
Returns the greater of two values, for each component of the vectors.
case min
Returns the lesser of two values, for each component of the vectors.
case cross
Calculates the cross product of two vectors.
case atan2
Returns the arc-tangent of the parameters.
case reflect
Returns the vector that points in the direction of reflection.
a
is incident vector andb
is the normal vector.case step
Vector step operator. Returns
0.0
ifa
is smaller thanb
and1.0
otherwise.case enumSize
Represents the size of the
Operator
enum.
Other members in extension
Type members
Instance members
var `operator`: VisualShaderNodeVectorOp.Operator
The operator to be used. 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.