示例#1
0
 public static string ToPrettySeconds(this VRage.Library.Utils.MyTimeSpan timeSpan)
 {
     return(PrettySI.makePretty(timeSpan.Seconds) + 's');
 }
示例#2
0
 public static string ToPretty(this Vector3D vec, byte sigFigs = 3)
 {
     return('{' + PrettySI.makePretty(vec.X, sigFigs, false) + ", " + PrettySI.makePretty(vec.Y, sigFigs, false) + ", " + PrettySI.makePretty(vec.Z, sigFigs, false) + '}');
 }