Version: 2022.2
言語: 日本語
public static Vector2 Min (Vector2 lhs, Vector2 rhs);

説明

2 つのベクトルで各成分の一番小さな値を使用してベクトルを作成します

関連項目: Max 関数

using UnityEngine;

public class Example : MonoBehaviour { void Start() { Vector2 a = new Vector2(1, 3); Vector2 b = new Vector2(4, 2); print(Vector2.Min(a, b)); // prints (1.0,2.0) } }