示例#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;
 }