Beispiel #1
0
 public Transformation WithRotation(RotationAngle rotationAngle)
 {
     return(new Transformation(Translation, Scale, rotationAngle));
 }
Beispiel #2
0
 public Transformation(Vector2 translation, Vector2 scale, RotationAngle rotationAngle)
 {
     Translation   = translation;
     Scale         = scale;
     RotationAngle = rotationAngle;
 }
Beispiel #3
0
 public Transformation Rotate(RotationAngle rotationAngle)
 {
     return(new Transformation(Translation, Scale, RotationAngle.Add(rotationAngle)));
 }