コード例 #1
0
 /// <summary>
 /// Quaternion转换为标准Copy字符串
 /// </summary>
 /// <param name="value">Quaternion值</param>
 /// <param name="format">格式</param>
 /// <returns>Copy字符串</returns>
 public static string ToCopyString(this Quaternion value, string format)
 {
     return(StringToolkit.Concat(value.x.ToString(format), "f,", value.y.ToString(format), "f,", value.z.ToString(format), "f,", value.w.ToString(format), "f"));
 }
コード例 #2
0
 /// <summary>
 /// Vector3转换为标准Copy字符串
 /// </summary>
 /// <param name="value">Vector3值</param>
 /// <param name="format">格式</param>
 /// <returns>Copy字符串</returns>
 public static string ToCopyString(this Vector3 value, string format)
 {
     return(StringToolkit.Concat(value.x.ToString(format), "f,", value.y.ToString(format), "f,", value.z.ToString(format), "f"));
 }