Beispiel #1
0
 /// <summary>
 /// Returns a new pose with the position and scale of this pose
 /// and the added rotation of both
 /// </summary>
 public Pose2D AddRotation(Pose2D other)
 {
     return(new Pose2D(Position, Rotation + other.Rotation));
 }
Beispiel #2
0
 public Visual(Texture2D texture, Pose2D pose, Texture2D glow)
 {
     this.Texture = texture;
     this.Pose    = pose;
     //this.Glow = glow;
 }
Beispiel #3
0
 /// <summary>
 /// Returns a new pose with all components added
 /// </summary>
 public Pose2D AddAll(Pose2D other)
 {
     return(new Pose2D(Position + other.Position,
                       Rotation + other.Rotation,
                       Scale + other.Scale));
 }
Beispiel #4
0
 public Visual(Texture2D texture, Pose2D pose)
     : this(texture, pose, null)
 {
 }