Esempio n. 1
0
		public override object __hx_setField(string field, int hash, object @value, bool handleProperties) {
			unchecked {
				switch (hash) {
					case 812216871:
					{
						this.normal = ((global::at.dotpoint.math.vector.Vector2) (@value) );
						return @value;
					}
					
					
					case 488854231:
					{
						this.displacement = ((global::at.dotpoint.math.vector.Vector2) (@value) );
						return @value;
					}
					
					
					case 38537191:
					{
						this.height = ((global::at.dotpoint.math.vector.Vector2) (@value) );
						return @value;
					}
					
					
					default:
					{
						return base.__hx_setField(field, hash, @value, handleProperties);
					}
					
				}
				
			}
		}
Esempio n. 2
0
		public override object __hx_setField(string field, int hash, object @value, bool handleProperties) {
			unchecked {
				switch (hash) {
					case 812216871:
					{
						this.normal = ((global::at.dotpoint.math.vector.Vector3) (@value) );
						return @value;
					}
					
					
					case 1257939113:
					{
						this.position = ((global::at.dotpoint.math.vector.Vector3) (@value) );
						return @value;
					}
					
					
					case 1472420579:
					{
						this.c_h0_conj = ((global::at.dotpoint.math.vector.Vector2) (@value) );
						return @value;
					}
					
					
					case 1594406711:
					{
						this.c_h0_norm = ((global::at.dotpoint.math.vector.Vector2) (@value) );
						return @value;
					}
					
					
					default:
					{
						return base.__hx_setField(field, hash, @value, handleProperties);
					}
					
				}
				
			}
		}
Esempio n. 3
0
		public virtual void init() {
			unchecked {
				this.N05 = ((int) (( this.N * 0.5 )) );
				this.M05 = ((int) (( this.M * 0.5 )) );
				this.LN1 = ( 1 / this.LN );
				this.LM1 = ( 1 / this.LM );
				this.vertices = new global::haxe.root.Array<object>();
				double NL = ( this.LN / this.N );
				double ML = ( this.LM / this.M );
				global::at.dotpoint.math.vector.Vector2 k_norm = new global::at.dotpoint.math.vector.Vector2(default(global::haxe.lang.Null<double>), default(global::haxe.lang.Null<double>));
				global::at.dotpoint.math.vector.Vector2 k_conj = new global::at.dotpoint.math.vector.Vector2(default(global::haxe.lang.Null<double>), default(global::haxe.lang.Null<double>));
				{
					int _g1 = 0;
					int _g = ( this.N + 1 );
					while (( _g1 < _g )) {
						int n = _g1++;
						this.vertices[n] = new global::haxe.root.Array<object>();
						{
							int _g3 = 0;
							int _g2 = ( this.M + 1 );
							while (( _g3 < _g2 )) {
								int m = _g3++;
								{
									k_norm.set_x(( ( 6.28318530718 * (( n - this.N05 )) ) * this.LN1 ));
									k_norm.set_y(( ( 6.28318530718 * (( m - this.M05 )) ) * this.LM1 ));
									k_norm = k_norm;
								}
								
								{
									k_conj.set_x(( ( 6.28318530718 * ((  - (n)  - this.N05 )) ) * this.LN1 ));
									k_conj.set_y(( ( 6.28318530718 * ((  - (m)  - this.M05 )) ) * this.LM1 ));
									k_conj = k_conj;
								}
								
								global::haxe.root.Vertex vertex = new global::haxe.root.Vertex();
								vertex.position.set_x(( (( n - this.N05 )) * NL ));
								vertex.position.set_y(( (( m - this.M05 )) * ML ));
								this.h0(n, m, k_norm, vertex.c_h0_norm);
								this.h0(n, m, k_conj, vertex.c_h0_conj);
								{
									global::at.dotpoint.math.vector.Vector2 _g4 = vertex.c_h0_conj;
									_g4.set_y(( _g4.get_y() * -1 ));
								}
								
								((global::haxe.root.Array<object>) (global::haxe.root.Array<object>.__hx_cast<object>(((global::haxe.root.Array) (this.vertices[n]) ))) )[m] = vertex;
							}
							
						}
						
					}
					
				}
				
			}
		}
Esempio n. 4
0
		public override object __hx_setField(string field, int hash, object @value, bool handleProperties) {
			unchecked {
				switch (hash) {
					case 1664341741:
					{
						this.tmpVector2_4 = ((global::at.dotpoint.math.vector.Vector2) (@value) );
						return @value;
					}
					
					
					case 1664341740:
					{
						this.tmpVector2_3 = ((global::at.dotpoint.math.vector.Vector2) (@value) );
						return @value;
					}
					
					
					case 1664341739:
					{
						this.tmpVector2_2 = ((global::at.dotpoint.math.vector.Vector2) (@value) );
						return @value;
					}
					
					
					case 1664341738:
					{
						this.tmpVector2_1 = ((global::at.dotpoint.math.vector.Vector2) (@value) );
						return @value;
					}
					
					
					case 3796624:
					{
						this.LM1 = ((double) (global::haxe.lang.Runtime.toDouble(@value)) );
						return @value;
					}
					
					
					case 3796847:
					{
						this.LN1 = ((double) (global::haxe.lang.Runtime.toDouble(@value)) );
						return @value;
					}
					
					
					case 3839890:
					{
						this.M05 = ((int) (global::haxe.lang.Runtime.toInt(@value)) );
						return @value;
					}
					
					
					case 3889619:
					{
						this.N05 = ((int) (global::haxe.lang.Runtime.toInt(@value)) );
						return @value;
					}
					
					
					case 25064959:
					{
						this.maxAmplitude = ((double) (global::haxe.lang.Runtime.toDouble(@value)) );
						return @value;
					}
					
					
					case 1005224604:
					{
						this.frequency = ((double) (global::haxe.lang.Runtime.toDouble(@value)) );
						return @value;
					}
					
					
					case 2013228622:
					{
						this.gravity = ((double) (global::haxe.lang.Runtime.toDouble(@value)) );
						return @value;
					}
					
					
					case 17025:
					{
						this.LM = ((double) (global::haxe.lang.Runtime.toDouble(@value)) );
						return @value;
					}
					
					
					case 17026:
					{
						this.LN = ((double) (global::haxe.lang.Runtime.toDouble(@value)) );
						return @value;
					}
					
					
					case 77:
					{
						this.M = ((int) (global::haxe.lang.Runtime.toInt(@value)) );
						return @value;
					}
					
					
					case 78:
					{
						this.N = ((int) (global::haxe.lang.Runtime.toInt(@value)) );
						return @value;
					}
					
					
					case 1779810297:
					{
						this.vertices = ((global::haxe.root.Array<object>) (global::haxe.root.Array<object>.__hx_cast<object>(((global::haxe.root.Array) (@value) ))) );
						return @value;
					}
					
					
					default:
					{
						return base.__hx_setField(field, hash, @value, handleProperties);
					}
					
				}
				
			}
		}