Пример #1
0
 // Constructor
 public CompressedElement(ElementCrusher crusher, CompressedValue cx, CompressedValue cy, CompressedValue cz) : this()
 {
     this.crusher   = crusher;
     this.cx        = cx;
     this.cy        = cy;
     this.cz        = cz;
     this.bitstream = new Bitstream(cx, cy, cz);
 }
Пример #2
0
        public static CompressedElement CompressToWorld(this Vector3 pos)
        {
            CompressedValue   cx = axisRanges[0].Compress(pos.x);
            CompressedValue   cy = axisRanges[1].Compress(pos.y);
            CompressedValue   cz = axisRanges[2].Compress(pos.z);
            CompressedElement ce = new CompressedElement(null, cx, cy, cz);

            return(ce);
        }