示例#1
0
 public static TCommand Rotate <TCommand>(this ISimpleMovementRules <TCommand> factory, Angle angle)
     where TCommand : ISimpleMovementCommand, new()
 {
     return(new TCommand {
         SimpleMovement = SimpleMovement.RotateWithVelocity(angle, factory.AngularVelocityLimit)
     });
 }
示例#2
0
 public static TCommand RotateAngleWithVelocity <TCommand>(this ISimpleMovementRules <TCommand> factory, Angle angle, Angle velocity)
     where TCommand : ISimpleMovementCommand, new()
 {
     return(new TCommand {
         SimpleMovement = SimpleMovement.RotateWithVelocity(angle, velocity)
     });
 }