示例#1
0
        public LVector3Int[] GetAllPositions()
        {
            LVector3Int[] array = new LVector3Int[this.tileIDs.Length];
            int           x     = this.min.x;
            int           y     = this.min.y;
            int           x2    = this.size.x;
            int           y2    = this.size.y;

            for (int i = 0; i < y2; i++)
            {
                for (int j = 0; j < x2; j++)
                {
                    array[i * x2 + j] = new LVector3Int(x + j, y + i, 0);
                }
            }
            return(array);
        }
示例#2
0
 public void Write(LVector3Int val)
 {
     Write(val.x); Write(val.y); Write(val.z);
 }
示例#3
0
 public static LVector3 ToLVector3(this LVector3Int vec)
 {
     return(new LVector3(true, vec.x * LFloat.Precision, vec.y * LFloat.Precision, vec.z * LFloat.Precision));
 }