Beispiel #1
0
 public float4( double _x, double _y, float2 _zw )
 {
     x = (float) _x; y = (float) _y; z = _zw.x; w = _zw.y;
 }
Beispiel #2
0
 public float4( float2 _xy, float2 _zw )
 {
     x = _xy.x; y = _xy.y; z = _zw.x; w = _zw.y;
 }
Beispiel #3
0
 public float4( float2 _xy, double _z, double _w )
 {
     x = _xy.x; y = _xy.y; z = (float) _z; w = (float) _w;
 }
Beispiel #4
0
 public float4( double _x, float2 _yz, double _w )
 {
     x = (float) _x; y = _yz.x; z = _yz.y; w = (float) _w;
 }
Beispiel #5
0
 public float3( float2 _xy, double _z )
 {
     x = _xy.x; y = _xy.y; z = (float) _z;
 }
Beispiel #6
0
 public float3( double _x, float2 _yz )
 {
     x = (float) _x; y = _yz.x; z = _yz.y;
 }
Beispiel #7
0
 public static float4 _float4( double _x, double _y, float2 _zw )
 {
     return new float4( _x, _y, _zw );
 }
Beispiel #8
0
 public static float4 _float4( float2 _xy, float2 _zw )
 {
     return new float4( _xy, _zw );
 }
Beispiel #9
0
 public static float4 _float4( float2 _xy, double _z, double _w )
 {
     return new float4( _xy, _z, _w );
 }
Beispiel #10
0
 public static float4 _float4( double _x, float2 _yz, double _w )
 {
     return new float4( _x, _yz, _w );
 }
Beispiel #11
0
 public static float3 _float3( double _x, float2 _yz )
 {
     return new float3( _x, _yz );
 }
Beispiel #12
0
 public static float3 _float3( float2 _xy, double _z )
 {
     return new float3( _xy, _z );
 }
Beispiel #13
0
 public float2 normalize( float2 _value )
 {
     float	InvLength = 1.0f / length( _value ); return _value * InvLength;
 }
Beispiel #14
0
 public float length( float2 _value )
 {
     return (float) Math.Sqrt( dot( _value, _value ) );
 }
Beispiel #15
0
 public float dot( float2 a, float2 b )
 {
     return a.x*b.x + a.y*b.y;
 }