/// <summary> /// Initializes a new instance of the <see cref="PanAction" /> class. /// </summary> /// <param name="start">The start point of the action.</param> /// <param name="form">The form.</param> public PanAction(Vector2 start, [NotNull] Main form) { _last = start; _form = form; _translate = form._translate; _invTranslate = form._invTranslate; }
/// <summary> /// Initializes a new instance of the <see cref="PanTool" /> class. /// </summary> /// <param name="controller">The controller.</param> /// <param name="form">The form.</param> public PanTool([NotNull] Controller controller, [NotNull] Main form) : base(controller) { _form = form; }