예제 #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));
 }