format
typescript
Vector3.Max(lhs, rhs)class: Vector3
description
Returns a vector composed of the maximum components of two vectors.
parameter
| param_name | type | description |
|---|---|---|
| lhs | Vector3 | The first vector involved in the operation. |
| rhs | Vector3 | The second vector involved in the operation. |
return
| type | description |
|---|---|
Vector3 | A vector composed of the maximum components of the two vectors. |
code example
typescript
let lhs = new Vector3(1,2,3);
let rhs = new Vector3(3,4,5);
Debug.Log("Max is",Vector3.Max(lhs,rhs));