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: Vec2

      Operand vector.

    • b: Vec2

      Operand vector.

    • Optional dst: Vec2

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

    Returns Vec2

    The max components vector.