Skip to content

Instantly share code, notes, and snippets.

View NeilGatenby's full-sized avatar

Neil Gatenby NeilGatenby

  • Edinburgh, Scotland
View GitHub Profile
#version 150
uniform sampler2D uTexture;
in VertexData {
noperspective vec3 distance;
vec4 color;
vec2 texcoord;
} vVertexIn;
@klmr
klmr / Calculator.cs
Created March 6, 2019 14:49
Workaround for missing numeric type constraints in C# — https://stackoverflow.com/q/32664/1968
using System;
using System.Collections.Generic;
namespace OperatorTest {
public interface ICalculator { }
public interface ICalculator<T> : ICalculator {
T Add(T a, T b);
T Divide(T a, T b);
T Multiply(T a, T b);