Пример #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));
 }
Пример #2
0
 public Visual(Texture2D texture, Pose2D pose, Texture2D glow)
 {
     this.Texture = texture;
     this.Pose    = pose;
     //this.Glow = glow;
 }
Пример #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));
 }
Пример #4
0
 public Visual(Texture2D texture, Pose2D pose)
     : this(texture, pose, null)
 {
 }