Version: 2020.3
public static Vector2 operator / (Vector2 a, float d);

描述

将向量除以一个数值。

a 的每个分量除以数值 /d/。

using UnityEngine;

public class Example : MonoBehaviour { void Start() { // make the vector twice shorter: prints (0.5,1.0) print(new Vector2(1, 2) / 2.0f); } }

public static Vector2 operator / (Vector2 a, Vector2 b);

描述

将向量除以另一个向量。

a 的每个分量除以 b 的相应分量。