Files
MuHua-Core/Assets/ModuleTools/VectorTool.cs
T
MuHua-123 84243e75a8 s
2024-11-25 18:32:05 +08:00

11 lines
250 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public static class VectorTool {
/// <summary> 向量的xyz和 </summary>
public static float VectorSum(this Vector3 v) {
return v.x + v.y + v.z;
}
}