format
typescript
Vector2.Max(lhs, rhs)class: Vector2
description
Calculates the maximum value of each component of two Vector2 objects.
parameter
| param_name | type | description |
|---|---|---|
| lhs | Vector2 | The vector lhs. |
| rhs | Vector2 | The vector rhs. |
return
| type | description |
|---|---|
Vector2 | A new vector formed by the maximum values of the corresponding components of lhs and rhs. |
code example
typescript
let lhs = new Vector2(1, 8);
let rhs = new Vector2(3, 4);
let max = Vector2.Max(lhs, rhs);