public static Ex QuaternionEuler(Ex xyz) { return(quatEuler3.Of(xyz)); }
public static Ex OfDFD(ExFunction f, params Ex[] args) => f.Of(args.Select(x => x.As <double>()).ToArray()).As <float>();
public static Ex QuaternionEuler(Ex x, Ex y, Ex z) { return(quatEuler.Of(x, y, z)); }
//This is exactly what Mathf does, avoiding the function call is faster. public static Ex OfDFD(ExFunction f, Ex arg) => f.Of(arg.As <double>()).As <float>();