Ejemplo n.º 1
0
 public static implicit operator IntVector((int x, int y) p) => new IntVector(p.x, p.y);
Ejemplo n.º 2
0
 public static implicit operator Point((int x, int y) p) => new Point(p.x, p.y);
 return(float2(p.x, p.z));
Ejemplo n.º 4
0
 orderby CalculateLength(p.x - vantagePoint.x, p.y - vantagePoint.y)
Ejemplo n.º 5
0
 public static implicit operator PVector3((double x, double y, double z) p) => new PVector3(p.x, p.y, p.z);
Ejemplo n.º 6
0
 /// <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);
Ejemplo n.º 7
0
 return(new Point(p.x, p.y));
Ejemplo n.º 8
0
 public static implicit operator PVector((double x, double y) p) => new PVector(p.x, p.y);
Ejemplo n.º 9
0
 public static implicit operator Point((double x, double y) p) => new Point(p.x, p.y);
Ejemplo n.º 10
0
 /// <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);
Ejemplo n.º 11
0
 public static implicit operator Cord((double x, double y) p) => new Cord(p.x, p.y);