Exemple #1
0
 public static Dictionary <string, float> ToDictionary(this Vector3 self)        //
 {
     return(Vector3Util.ToDictionary(self));
 }
Exemple #2
0
 /// <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));
 }
Exemple #3
0
 /// <summary>
 /// Vector3.ToString只保留小数后2位,看起来会卡,所以需要ToStringDetail
 /// </summary>
 public static string ToStringDetail(this Vector3 self, string separator = StringConst.String_Comma)
 {
     return(Vector3Util.ToStringDetail(self, separator));
 }
Exemple #4
0
 /// <summary>
 /// 将逗号改成对应的separator
 /// </summary>
 public static string ToStringReplaceSeparator(this Vector3 self, string separator = StringConst.String_Comma)
 {
     return(Vector3Util.ToStringReplaceSeparator(self, separator));
 }
Exemple #5
0
 public static Vector2 ToVector2(this Vector3 self, string format = StringConst.String_x_y)
 {
     return(Vector3Util.ToVector2(self, format));
 }
Exemple #6
0
 /// <summary>
 /// Z的值为0
 /// </summary>
 /// <param name="vector3"></param>
 /// <returns></returns>
 public static Vector3 SetZeroZ(this Vector3 self)
 {
     return(Vector3Util.ZeroZ(self));
 }
Exemple #7
0
 public static Vector3 ConvertElement(this Vector3 self, Func <float, float> convertElementFunc)
 {
     return(Vector3Util.ConvertElement(self, convertElementFunc));
 }
Exemple #8
0
 public static Vector3 Snap2(this Vector3 self, Vector3 snapSize)
 {
     return(Vector3Util.Snap2(self, snapSize));
 }
Exemple #9
0
 public static float GetFormat(Vector3 self, string format)
 {
     return(Vector3Util.GetFormat(self, format));
 }