Пример #1
0
 public static implicit operator PointLong((long x, long y) tuple) => new PointLong(tuple.x, tuple.y);
Пример #2
0
 => new Byte3(tuple.x, tuple.y, tuple.z);
Пример #3
0
 new Vector3D(tuple.x, tuple.y, tuple.z);
Пример #4
0
 public static implicit operator Pos((int x, int y) tuple) => new Pos(tuple.x, tuple.y);
 => new Float2(tuple.x, tuple.y);
Пример #6
0
 public static PointI Point(this(int x, int y) tuple) => new PointI(tuple.x, tuple.y);
Пример #7
0
 => new BlockPosition(tuple.x, tuple.y, tuple.z);
Пример #8
0
 public static implicit operator PointDouble((double x, double y) tuple) => new PointDouble(tuple.x, tuple.y);
Пример #9
0
 => new Byte2(tuple.x, tuple.y);
Пример #10
0
 public static implicit operator Vec2((int x, int y) tuple) => new Vec2(tuple.x, tuple.y);
Пример #11
0
 => new Float3(tuple.x, tuple.y, tuple.z);
Пример #12
0
 => new Float4(tuple.x, tuple.y, tuple.z, tuple.w);
Пример #13
0
 => new Byte4(tuple.x, tuple.y, tuple.z, tuple.w);
Пример #14
0
 public static Vector2 ToVector2(this(float x, float y) tuple) => new Vector2(tuple.x, tuple.y);
Пример #15
0
 => new ChunkPosition(tuple.x, tuple.z);
Пример #16
0
 => new Int2(tuple.x, tuple.y);
Пример #17
0
 public static implicit operator VectorByte2((byte x, byte y) tuple) => new VectorByte2(tuple.x, tuple.y);
Пример #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);
Пример #19
0
 return(new Vector2(tuple.x, tuple.y));
Пример #20
0
 public static implicit operator Index2d((int x, int y) tuple) => new Index2d(tuple.x, tuple.y);
Пример #21
0
 return(new Point(tuple.x, tuple.y));