格式
typescript
Vector3.Div(rhs)所属类: Vector3
描述
将本向量除以指定数值。
参数
| 参数名 | 类型 | 描述 |
|---|---|---|
| rhs | number|Vector3 | 除数 |
返回值
| 类型 | 描述 |
|---|---|
Vector3 | 相除后结果 |
代码示例
typescript
let lhs = new Vector3(1,2,3);
let rhs = new Vector3(3,4,5);
let v3_result = lhs.Div(rhs);
let v3_result_2 = lhs.Div(1);
Debug.Log("Div result is",v3_result);
Debug.Log("Div result is",v3_result_2);