public static implicit operator IntVector((int x, int y) p) => new IntVector(p.x, p.y);
public static implicit operator Point((int x, int y) p) => new Point(p.x, p.y);
return(float2(p.x, p.z));
orderby CalculateLength(p.x - vantagePoint.x, p.y - vantagePoint.y)
public static implicit operator PVector3((double x, double y, double z) p) => new PVector3(p.x, p.y, p.z);
/// <summary> /// Creates new <b>PopupXY</b> that specifies position relative to the work area of the primary screen. /// </summary> public static implicit operator PopupXY((Coord x, Coord y) p) => new PopupXY(p.x, p.y, true);
return(new Point(p.x, p.y));
public static implicit operator PVector((double x, double y) p) => new PVector(p.x, p.y);
public static implicit operator Point((double x, double y) p) => new Point(p.x, p.y);
/// <summary> /// Creates a <see cref="Point"/> instance from the given coordinates. /// </summary> /// <param name="p">A tuple of two integers representing the <c>x</c> and <c>y</c> coordinates.</param> /// <returns>A <see cref="Point"/> with its <see cref="Point.X"/> and <see cref="Point.Y"/> properties set to the given coordinates.</returns> public static Point Pt(this(int x, int y) p) => new Point(p.x, p.y);
public static implicit operator Cord((double x, double y) p) => new Cord(p.x, p.y);