Fix C# binding with float precision.
%ignore tinyspline::Vec3::operator-;
%ignore tinyspline::Vec3::operator*;
-%typemap(cscode) tinyspline::Vec3 %{
+%typemap(cscode,noblock=1) tinyspline::Vec3 {
public static Vec3 operator+(Vec3 a, Vec3 b)
{ return a.Add(b); }
public static Vec3 operator-(Vec3 a, Vec3 b)
{ return a.Subtract(b); }
+#ifndef TINYSPLINE_FLOAT_PRECISION
public static Vec3 operator*(Vec3 vec, double val)
{ return vec.Multiply(val); }
+#endif
public static Vec3 operator*(Vec3 vec, float val)
{ return vec.Multiply(val); }
-%}
+}
%csmethodmodifiers tinyspline::BSpline::toString "public override";
%csmethodmodifiers tinyspline::DeBoorNet::toString "public override";
