Skip to content

format

typescript
Vector4.Max(lhs, rhs)

class: Vector4

description

Calculates the maximum value for each component of two Vector4 objects.

parameter

param_nametypedescription
lhsVector4The lhs vector.
rhsVector4The rhs vector.

return

typedescription
Vector4A new vector formed by the maximum value of each corresponding component of lhs and rhs.

code example

typescript
let lhs = new Vector4(1, 2, 3, 4);
let rhs = new Vector4(3, 4, 5, 6);
let max = Vector4.Max(lhs, rhs);