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