Function

    VisualShaderNodeVectorFunc.swift:19
    enum 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 and 1.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 and 0 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

    Citizens in SwiftGodot

    Conformances

    Type members

    Instance members

    Type features

    Instance features