Divides a vector by a number.
Divides each component of a
by a number d
.
using UnityEngine;
public class Example : MonoBehaviour { void Start() { //Prints (0.5, 1.0, 1.5, 2.5) print(new Vector4(1, 2, 3, 5) / 2); } }
Divides two vectors component-wise.
Every component in the result is a component of a
divided by the same component of b
.
using UnityEngine;
public class Example : MonoBehaviour { void Start() { // prints (2.0,1.5,0.5,0.2) print(new Vector4(4, 3, 2, 1) / new Vector4(2, 2, 4, 5)); } }