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