/// <summary> /// Constructs a circular area. /// </summary> /// <since_tizen> 3 </since_tizen> /// <param name="center">Coordinates for center of the area.</param> /// <param name="radius">Radius of the area.</param> /// <exception cref="System.NotSupportedException">Thrown when the required feature is not supported.</exception> /// <exception cref="System.ArgumentException">Thrown when input coordinates are invalid.</exception> /// <exception cref="System.InvalidOperationException">Thrown when a native operation fails to allocate memory.</exception> public Area(Geocoordinates center, double radius) { handle = new Interop.AreaHandle(center?.handle, radius); }
internal Area(Interop.AreaHandle nativeHandle) { handle = nativeHandle; }
/// <summary> /// Constructs a rectangular area. /// </summary> /// <since_tizen> 3 </since_tizen> /// <param name="topLeft">Top-left coordinates of the area.</param> /// <param name="bottomRight">Bottom-left coordinates of the area.</param> /// <exception cref="System.NotSupportedException">Thrown when the required feature is not supported.</exception> /// <exception cref="System.ArgumentException">Thrown when input coordinates are invalid.</exception> /// <exception cref="System.InvalidOperationException">Thrown when a native operation fails to allocate memory.</exception> public Area(Geocoordinates topLeft, Geocoordinates bottomRight) { handle = new Interop.AreaHandle(topLeft?.handle, bottomRight?.handle); }