예제 #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));