Esempio n. 1
0
 public Transform2(Vector2 location, Rotation2 rotation, Size2 size, float scale, ZIndex zIndex)
 {
     Location = location;
     Rotation = rotation;
     Size     = size;
     Scale    = scale;
     ZIndex   = zIndex;
 }
Esempio n. 2
0
 public bool Equals(Transform2 other)
 {
     return(Location.Equals(other.Location) &&
            Size.Equals(other.Size) &&
            Rotation.Equals(other.Rotation) &&
            Scale - other.Scale < Epsilon &&
            ZIndex.Equals(other.ZIndex));
 }
Esempio n. 3
0
 public Transform2(Vector2 location, Size2 size, ZIndex zIndex)
     : this(location, Rotation2.Default, size, 1, zIndex)
 {
 }
Esempio n. 4
0
 public Transform2(Rectangle rectangle, ZIndex zIndex)
     : this(new Vector2(rectangle.Location.X, rectangle.Location.Y), Rotation2.Default, new Size2(rectangle.Size.X, rectangle.Size.Y), 1, zIndex)
 {
 }
Esempio n. 5
0
 public bool Equals(ZIndex other)
 {
     return(Value == other.Value);
 }