예제 #1
0
 public Skärmposition Transformera(Skärmposition skärmposition)
 {
     return(skärmposition.Minus(Position));
 }
예제 #2
0
 public void CentreraKameraMot(Skärmposition position)
 {
     Position = new Skärmposition(position.X - Dimensioner.Bredd / 2, position.Y - Dimensioner.Höjd / 2);
 }
예제 #3
0
 public Skärmposition Minus(Skärmposition skärmposition)
 {
     return(new Skärmposition(((Position)this).Minus(skärmposition)));
 }
예제 #4
0
 public Kamera(Skärmyta dimensioner, Skärmposition skärmposition = null)
 {
     ValideraDimensioner(dimensioner);
     Dimensioner = dimensioner;
     Position    = skärmposition ?? new Skärmposition(0, 0);
 }
예제 #5
0
 public Skärmposition Plus(Skärmposition andraPositionen)
 {
     return(new Skärmposition(((Position)this).Plus(andraPositionen)));
 }