380 {
381 float num = amount * amount;
382 float num2 = amount * num;
383 float num3 = 2f * num2 - 3f * num + 1f;
384 float num4 = -2f * num2 + 3f * num;
385 float num5 = num2 - 2f * num + amount;
386 float num6 = num2 - num;
388 result.X = value1.X * num3 + value2.X * num4 + tangent1.X * num5 + tangent2.X * num6;
389 result.Y = value1.Y * num3 + value2.Y * num4 + tangent1.Y * num5 + tangent2.Y * num6;
390 result.Z = value1.Z * num3 + value2.Z * num4 + tangent1.Z * num5 + tangent2.Z * num6;
391 return result;
392 }
Vector3(float x, float y, float z)