示例#1
0
 [MethodImpl(Inline)] public static uint3 step(uint3 a, uint3 b) => uint3(step(a.x, b.x), step(a.y, b.y), step(a.z, b.z));
示例#2
0
 [MethodImpl(Inline)] public static uint3 min(uint3 a, uint3 b) => uint3(min(a.x, b.x), min(a.y, b.y), min(a.z, b.z));
示例#3
0
 [MethodImpl(Inline)] public static unsafe float3 abs(float3 a)
 {
     uint3 b = (*(uint3 *)&a) & 0x7FFFFFFF; return(*(float3 *)&b);
 }
示例#4
0
 [MethodImpl(Inline)] public static uint3 lerp(uint3 a, uint3 b, uint3 c) => a + c * (b - a);
示例#5
0
 [MethodImpl(Inline)] public static uint3 mad(uint3 a, uint3 b, uint3 c) => a * b + c;
示例#6
0
 [MethodImpl(Inline)] public static uint dot(uint3 a, uint3 b) => a.x * b.x + a.y * b.y + a.z * b.z;
示例#7
0
 [MethodImpl(Inline)] public static uint3  clamp(uint3 v, uint3 a, uint3 b) => max(a, min(b, v));