You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
766 B

using MODELING_DEF_DES_MI_VI.Helpers;
namespace MODELING_DEF_DES_MI_VI.Models
{
public class Camera2D : PropertyChangedClass
{
private double scale = 1;
public double Scale
{
get => scale;
set
{
CutDepth = CutDepth / scale * value;
Speed = Speed / scale * value;
DepthVisibility = DepthVisibility / scale * value;
scale = value;
}
}
public double CutDepth { get; set; }
public double DepthVisibility { get; set; }
public double Speed { get; set; }
public Point2D StartPosition { get; set; }
public int Height { get; set; }
public int Width { get; set; }
}
}