public static Dictionary <string, float> ToDictionary(this Vector3 self) // { return(Vector3Util.ToDictionary(self)); }
/// <summary> /// v1乘v2 /// </summary> /// <param name="v1"></param> /// <param name="v2"></param> /// <returns></returns> public static Vector3 Multiply(this Vector3 self, Vector3 v2) { return(Vector3Util.Multiply(self, v2)); }
/// <summary> /// Vector3.ToString只保留小数后2位,看起来会卡,所以需要ToStringDetail /// </summary> public static string ToStringDetail(this Vector3 self, string separator = StringConst.String_Comma) { return(Vector3Util.ToStringDetail(self, separator)); }
/// <summary> /// 将逗号改成对应的separator /// </summary> public static string ToStringReplaceSeparator(this Vector3 self, string separator = StringConst.String_Comma) { return(Vector3Util.ToStringReplaceSeparator(self, separator)); }
public static Vector2 ToVector2(this Vector3 self, string format = StringConst.String_x_y) { return(Vector3Util.ToVector2(self, format)); }
/// <summary> /// Z的值为0 /// </summary> /// <param name="vector3"></param> /// <returns></returns> public static Vector3 SetZeroZ(this Vector3 self) { return(Vector3Util.ZeroZ(self)); }
public static Vector3 ConvertElement(this Vector3 self, Func <float, float> convertElementFunc) { return(Vector3Util.ConvertElement(self, convertElementFunc)); }
public static Vector3 Snap2(this Vector3 self, Vector3 snapSize) { return(Vector3Util.Snap2(self, snapSize)); }
public static float GetFormat(Vector3 self, string format) { return(Vector3Util.GetFormat(self, format)); }