您最多选择25个主题 主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 
 
 

28 行
808 B

namespace UIWidgets.physics {
public class Tolerance {
public Tolerance(
double distance = _epsilonDefault,
double time = _epsilonDefault,
double velocity = _epsilonDefault
) {
this.distance = distance;
this.time = time;
this.velocity = velocity;
}
const double _epsilonDefault = 1e-3;
public static readonly Tolerance defaultTolerance = new Tolerance();
public readonly double distance;
public readonly double time;
public readonly double velocity;
public override string ToString() {
return string.Format("Tolerance(distance: ±{0}, time: ±{1}, velocity: ±{2})",
this.distance, this.time, this.velocity);
}
}
}