コード例 #1
0
 private System.Windows.Vector getFrontBackVector(Point carPosition, Size carSize, FrontBackDirections facing)
 {
     return(new System.Windows.Vector((facing == FrontBackDirections.Left ? -carSize.Width : carSize.Width), 0));
 }
コード例 #2
0
ファイル: Map.cs プロジェクト: ddg-igh/crazy-taxi
 private System.Windows.Vector getFrontBackVector(Point carPosition, Size carSize, FrontBackDirections facing)
 {
     return new System.Windows.Vector((facing == FrontBackDirections.Left ? -carSize.Width : carSize.Width), 0);
 }