コード例 #1
0
 public override bool isDone(double time)
 {
     return(PhysicsUtils.nearZero(this._solution.x(time), this.tolerance.distance) &&
            PhysicsUtils.nearZero(this._solution.dx(time), this.tolerance.velocity));
 }
コード例 #2
0
 public override bool isDone(float time)
 {
     return(PhysicsUtils.nearZero(_solution.x(time), tolerance.distance) &&
            PhysicsUtils.nearZero(_solution.dx(time), tolerance.velocity));
 }