示例#1
0
 public static float3 cross(float3 a, float3 b)
 {
     return(a.cross(b));
 }
示例#2
0
 public float4(float3 a, float b)
 {
     x = a.x; y = a.y; z = a.z; w = b;
 }
示例#3
0
 public float3 cross(float3 b)
 {
     return(new float3(y * b.z - z * b.y, z * b.x - x * b.z, x * b.y - y * b.x));
 }
示例#4
0
 public float dot(float3 b)
 {
     return(x * b.x + y * b.y + z * b.z);
 }
示例#5
0
 public static float dot(float3 a, float3 b)
 {
     return(a.x * b.x + a.y * b.y + a.z * b.z);
 }
示例#6
0
 public static float3 normalize(float3 a)
 {
     return(a.normalize());
 }
示例#7
0
 public static float length(float3 a)
 {
     return(a.length());
 }