format
typescript
Vector4.Max(lhs, rhs)class: Vector4
description
Calculates the maximum value for each component of two Vector4 objects.
parameter
| param_name | type | description |
|---|---|---|
| lhs | Vector4 | The lhs vector. |
| rhs | Vector4 | The rhs vector. |
return
| type | description |
|---|---|
Vector4 | A 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);