When i was editing marching cubes, i found that Mathf.Lerp seemed a bit slower than a function of Lerp written in the same script as the marching cubes code. (Unless someone shows otherwise)
Could you give me a technical explanation about the unity engine, of how it accesses unity functions, so that i can understand the code engine better?
this was fastest:
function lerps(o:Vector3, v:Vector3, alpha:float):Vector3
{
o.x += ( v.x - o.x ) * alpha;
o.y += ( v.y - o.y ) * alpha;
o.z += ( v.z - o.z ) * alpha;
return o;
}