Legacy Documentation: Version 4.6(go to latest)
Language: English
  • C#
  • JS
  • Boo

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

Vector4.Max

public static function Max(lhs: Vector4, rhs: Vector4): Vector4;

Description

Returns a vector that is made from the largest components of two vectors.

See Also: Min function.

	var a : Vector4 = Vector4 (1, 2, 3, 5);
	var b : Vector4 = Vector4 (4, 3, 2, 0);
	print (Vector4.Max(a,b)); // prints (4.0,3.0,3.0,5.0)