Function max

  • Return max values of two vectors. Given vectors a and b returns [max(a[0], b[0]), max(a[1], b[1]), max(a[2], b[2])].

    Parameters

    • a: Vec3

      Operand vector.

    • b: Vec3

      Operand vector.

    • Optional dst: Vec3

      vector to hold result. If not passed in a new one is created.

    Returns Vec3

    The max components vector.