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