Пример #1
0
 public static string ToStringDetail(this Vector2 self, string separator = StringConst.String_Comma)
 {
     return(Vector2Util.ToStringDetail(self, separator));
 }
Пример #2
0
 /// <summary>
 /// 两个值是否相等 小于或等于
 /// </summary>
 /// <param name="self"></param>
 /// <param name="v2"></param>
 /// <param name="epsilon"></param>
 /// <returns></returns>
 public static bool EqualsEPSILON(this Vector2 self, Vector2 v2, float epsilon = FloatConst.Epsilon)
 {
     return(Vector2Util.EqualsEPSILON(self, v2, epsilon));
 }
Пример #3
0
 /// <summary>
 /// 变成Vector3
 /// </summary>
 /// <param name="self"></param>
 /// <param name="format"></param>
 /// <returns></returns>
 public static Vector3 ToVector3(this Vector2 self, string format = StringConst.String_x_y_0)
 {
     return(Vector2Util.ToVector3(self, format));
 }
Пример #4
0
 /// <summary>
 /// 叉乘
 /// </summary>
 /// <param name="self"></param>
 /// <param name="v2"></param>
 /// <returns></returns>
 public static float Cross(this Vector2 self, Vector2 v2)
 {
     return(Vector2Util.Cross(self, v2));
 }
Пример #5
0
 public static Vector2 ConvertElement(this Vector2 self, Func <float, float> convert_element_func)
 {
     return(Vector2Util.ConvertElement(self, convert_element_func));
 }
Пример #6
0
 public static Vector2 Snap2(this Vector2 self, Vector2 snap_size)
 {
     return(Vector2Util.Snap2(self, snap_size));
 }