Example #1
0
 public readonly CoordB ToByte()
 {
     return(CoordB.From(
                (sbyte)(X / Block.BLOCK_SIZE),
                (sbyte)(Y / Block.BLOCK_SIZE),
                (sbyte)(Z / Block.BLOCK_SIZE)));
 }
Example #2
0
 public static CoordB Parse(string value, string separator)
 {
     string[] coord = value.Split(separator);
     return(CoordB.From(
                (sbyte)sbyte.Parse(coord[0]),
                (sbyte)sbyte.Parse(coord[1]),
                (sbyte)sbyte.Parse(coord[2])
                ));
 }