Esempio n. 1
0
 public static implicit operator PointLong((long x, long y) tuple) => new PointLong(tuple.x, tuple.y);
Esempio n. 2
0
 => new Byte3(tuple.x, tuple.y, tuple.z);
Esempio n. 3
0
 new Vector3D(tuple.x, tuple.y, tuple.z);
Esempio n. 4
0
 public static implicit operator Pos((int x, int y) tuple) => new Pos(tuple.x, tuple.y);
 => new Float2(tuple.x, tuple.y);
Esempio n. 6
0
 public static PointI Point(this(int x, int y) tuple) => new PointI(tuple.x, tuple.y);
Esempio n. 7
0
 => new BlockPosition(tuple.x, tuple.y, tuple.z);
 public static implicit operator PointDouble((double x, double y) tuple) => new PointDouble(tuple.x, tuple.y);
Esempio n. 9
0
 => new Byte2(tuple.x, tuple.y);
Esempio n. 10
0
 public static implicit operator Vec2((int x, int y) tuple) => new Vec2(tuple.x, tuple.y);
 => new Float3(tuple.x, tuple.y, tuple.z);
Esempio n. 12
0
 => new Float4(tuple.x, tuple.y, tuple.z, tuple.w);
 => new Byte4(tuple.x, tuple.y, tuple.z, tuple.w);
Esempio n. 14
0
 public static Vector2 ToVector2(this(float x, float y) tuple) => new Vector2(tuple.x, tuple.y);
Esempio n. 15
0
 => new ChunkPosition(tuple.x, tuple.z);
Esempio n. 16
0
 => new Int2(tuple.x, tuple.y);
Esempio n. 17
0
 public static implicit operator VectorByte2((byte x, byte y) tuple) => new VectorByte2(tuple.x, tuple.y);
Esempio n. 18
0
 // Explicit type conversions (where an explicit type-cast is provided)
 public static explicit operator Coordinate((int x, int y) tuple) => new Coordinate(tuple.x, tuple.y);
Esempio n. 19
0
 return(new Vector2(tuple.x, tuple.y));
Esempio n. 20
0
 public static implicit operator Index2d((int x, int y) tuple) => new Index2d(tuple.x, tuple.y);
Esempio n. 21
0
 return(new Point(tuple.x, tuple.y));