コード例 #1
0
ファイル: RulesExtensions.cs プロジェクト: FoKycHuK/CVARC
 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
ファイル: RulesExtensions.cs プロジェクト: FoKycHuK/CVARC
 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)
     });
 }