// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. // namespace System.Windows { /// /// Point - Defaults to 0,0 /// public partial struct Point { #region Constructors /// /// Constructor which accepts the X and Y values /// /// The value for the X coordinate of the new Point /// The value for the Y coordinate of the new Point public Point(double x, double y) { _x = x; _y = y; } #endregion Constructors #region Public Methods /// /// Offset - update the location by adding offsetX to X and offsetY to Y /// /// The offset in the x dimension /// The offset in the y dimension public void Offset(double offsetX, double offsetY) { _x += offsetX; _y += offsetY; } #endregion Public Methods } }