Exemplo n.º 1
0
    // Cosine²

    public static float4 cos2(this float4 f) => (1 + f.cos()) / 2;
Exemplo n.º 2
0
    // Sine²

    public static float4 sin2(this float4 f) => (1 - f.cos()) / 2;