##
Math problem

I'm writing a bit of ArtRage code, and I have a math problem which should be easy but I cant seem to get my head around it.

Here is the problem:

(A * C) + (((B * D) - (A * C)) * M) - A

---------------------------------------- = T

(C + ((D - C) * M) * (B - A)

I have the feeling I can reduce the above - the situation this problem arises implies to me that A and B cancel out of the equation, leaving T as a function of M, D and C

Any help greatly appreciated.

AndyRage's mantra for graphics engine code:

"Sure - how hard can it be?"