Esempio n. 1
0
        public BoxSurfaceData Mirror()
        {
            BoxSurfaceData mirror = Clone() as BoxSurfaceData;

            mirror.snapOffset = new Vector4(
                -mirror.snapOffset.y, -mirror.snapOffset.x,
                -mirror.snapOffset.w, -mirror.snapOffset.z);

            return(mirror);
        }
Esempio n. 2
0
        public object Clone()
        {
            BoxSurfaceData clone = new BoxSurfaceData();

            clone.widthOffset = this.widthOffset;
            clone.snapOffset  = this.snapOffset;
            clone.size        = this.size;
            clone.eulerAngles = this.eulerAngles;
            return(clone);
        }