format
typescript
Vector3.Angle(from, to)class: Vector3
description
Calculate the angle between two vectors.
parameter
| param_name | type | description |
|---|---|---|
| from | Vector3 | The starting vector. |
| to | Vector3 | The ending vector. |
return
| type | description |
|---|---|
number | The angle (in degrees) between the two vectors. |
code example
typescript
let from = new Vector3(1,2,3);
let to = new Vector3(3,4,5);
Debug.Log("Angle is",Vector3.Angle(from,to));