section 3G · Library functions 📚

1100 pages · page 1 of 6

A

  • abs(3G)return the absolute value of the parameter✨
  • acos(3G)return the arccosine of the parameter✨
  • acosh(3G)return the arc hyperbolic cosine of the parameter✨
  • all(3G)check whether all elements of a boolean vector are true✨
  • any(3G)check whether any element of a boolean vector is true✨
  • asin(3G)return the arcsine of the parameter✨
  • asinh(3G)return the arc hyperbolic sine of the parameter✨
  • atan(3G)return the arc-tangent of the parameters✨
  • atanh(3G)return the arc hyperbolic tangent of the parameter✨
  • atomicAdd(3G)perform an atomic addition to a variable✨
  • atomicAnd(3G)perform an atomic logical AND operation to a variable✨
  • atomicCompSwap(3G)perform an atomic compare-exchange operation to a variable✨
  • atomicCounter(3G)return the current value of an atomic counter✨
  • atomicCounterDecrement(3G)atomically decrement a counter and return the prior value✨
  • atomicCounterIncrement(3G)atomically increment a counter and return the prior value✨
  • atomicExchange(3G)perform an atomic exchange operation to a variable✨
  • atomicMax(3G)perform an atomic max operation to a variable✨
  • atomicMin(3G)perform an atomic min operation to a variable✨
  • atomicOr(3G)perform an atomic logical OR operation to a variable✨
  • atomicXor(3G)perform an atomic logical exclusive OR operation to a variable✨

B

C

  • ceil(3G)find the nearest integer that is greater than or equal to the parameter✨
  • clamp(3G)constrain a value to lie between two further values✨
  • cos(3G)return the cosine of the parameter✨
  • cosh(3G)return the hyperbolic cosine of the parameter✨
  • cross(3G)calculate the cross product of two vectors✨

D

  • degrees(3G)convert a quantity in radians to degrees✨
  • determinant(3G)calculate the determinant of a matrix✨
  • dFdx,_dFdy(3G)return the partial derivative of an argument with respect to x or y✨
  • distance(3G)calculate the distance between two points✨
  • dot(3G)calculate the dot product of two vectors✨

E

F

  • faceforward(3G)return a vector pointing in the same direction as another✨
  • findLSB(3G)find the index of the least significant bit set to 1 in an integer✨
  • findMSB(3G)find the index of the most significant bit set to 1 in an integer✨
  • floatBitsToInt(3G)produce the encoding of a floating point value as an integer✨
  • floor(3G)find the nearest integer less than or equal to the parameter✨
  • fma(3G)perform a fused multiply-add operation✨
  • fract(3G)compute the fractional part of the argument✨
  • frexp(3G)split a floating point number✨
  • fwidth(3G)return the sum of the absolute value of derivatives in x and y✨

G