示例#1
0
 public WaveQuery(float x, float z)
 {
     posX                = x;
     posZ                = z;
     minError            = 0.1f;
     sampleSpectrum      = new bool[] { true, true, false, false };
     sampleOverlay       = true;
     mode                = QUERY_MODE.POSITION;
     result.displacement = new Vector3[4];
 }
示例#2
0
        public void GenerateElevation(float Latitude, float Longitude)
        {
            Position[0].Latitude  = Latitude;
            Position[0].Longitude = Longitude;

            QueryMode = QUERY_MODE.ONT_POINT;

            DataWidth  = 1;
            DataHeight = 1;

            ExtractElevation();
        }
示例#3
0
 public WaveQuery(Vector3 worldPos)
 {
     this.posX     = worldPos.x;
     this.posZ     = worldPos.z;
     this.minError = 0.1f;
     bool[] expr_32 = new bool[4];
     expr_32[0]               = true;
     expr_32[1]               = true;
     this.sampleSpectrum      = expr_32;
     this.sampleOverlay       = true;
     this.mode                = QUERY_MODE.POSITION;
     this.result.displacement = new Vector3[4];
 }
示例#4
0
 public WaveQuery()
 {
     this.posX     = 0f;
     this.posZ     = 0f;
     this.minError = 0.1f;
     bool[] expr_2E = new bool[4];
     expr_2E[0]               = true;
     expr_2E[1]               = true;
     this.sampleSpectrum      = expr_2E;
     this.sampleOverlay       = true;
     this.mode                = QUERY_MODE.POSITION;
     this.result.displacement = new Vector3[4];
 }
示例#5
0
 public WaveQuery(float x, float z)
 {
     this.posX     = x;
     this.posZ     = z;
     this.minError = 0.1f;
     bool[] expr_26 = new bool[4];
     expr_26[0]               = true;
     expr_26[1]               = true;
     this.sampleSpectrum      = expr_26;
     this.sampleOverlay       = true;
     this.mode                = QUERY_MODE.POSITION;
     this.result.displacement = new Vector3[4];
 }
示例#6
0
        public void GenerateElevation(float Latitude1, float Longitude1, float Latitude2, float Longitude2)
        {
            Position[0].Latitude  = Latitude1;
            Position[0].Longitude = Longitude1;

            Position[1].Latitude  = Latitude2;
            Position[1].Longitude = Longitude2;

            QueryMode = QUERY_MODE.TWO_POINTS;

            DataWidth  = 2;
            DataHeight = 1;

            ExtractElevation();
        }
示例#7
0
        public void GenerateElevation(float Latitude1, float Longitude1, float Latitude2, float Longitude2, int Count)
        {
            Position[0].Latitude  = Latitude1;
            Position[0].Longitude = Longitude1;

            Position[1].Latitude  = Latitude2;
            Position[1].Longitude = Longitude2;

            if (Count < 2)
            {
                Count = 2;
            }

            SampleCount = Count;

            DataWidth  = Count;
            DataHeight = 0; // default.

            QueryMode = QUERY_MODE.PATH;

            ExtractElevation();
        }
示例#8
0
 public WaveQuery(float x, float z)
 {
     posX = x;
     posZ = z;
     minError = 0.1f;
     sampleSpectrum = new bool[]{true, true, false, false};
     sampleOverlay = true;
     mode = QUERY_MODE.POSITION;
     result.displacement = new Vector3[4];
 }