示例#1
0
 public static Acceleration2D WithAcceleration(this Velocity2D velocity)
 {
     return(new Acceleration2D(velocity));
 }
示例#2
0
 public Acceleration2D(Velocity2D velocity)
 {
     this.Velocity = velocity ?? throw new ArgumentException(nameof(velocity));
 }