public Transform2(Vector2 location, Rotation2 rotation, Size2 size, float scale, ZIndex zIndex) { Location = location; Rotation = rotation; Size = size; Scale = scale; ZIndex = zIndex; }
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)); }
public Transform2(Vector2 location, Size2 size, ZIndex zIndex) : this(location, Rotation2.Default, size, 1, zIndex) { }
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) { }
public bool Equals(ZIndex other) { return(Value == other.Value); }