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

27 行
776 B

namespace Unity.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 $"Tolerance(distance: ±{this.distance}, time: ±{this.time}, velocity: ±{this.velocity})";
}
}
}