So now that I'm doing my computational methods class I feel like going back to some old problems and solving them in different ways because I have way too much time on my hands and because it's fun.
Sphere intersection stuff involves quadratics, yada yada yada...
Anyway:
p0^2 + 2*p0*d + d^2 - r^2
Assume r^2 = constant. Derivative of a constant is 0.
simplifies eqtn to:
p0^2 + 2*p0*d + d^2
Break down the eqtn component wise:
x0 ^2 + 2*x0*xd + xd^2
dt/dx0 = 2*x0 + 2xD
dt/dxd = 2*x0 + 2*xd
the equations are a function of t because t is the value in the parametric equation where the intersections occur.
Do I now stick these derivatives together?
What the hell do I do now?
I need to do the same thing to the y and z components.
Surely there is a simpler way to take derivatives of parametric equations?
This is what happens when schools cancel maths subjects.
Sphere intersection stuff involves quadratics, yada yada yada...
Anyway:
p0^2 + 2*p0*d + d^2 - r^2
Assume r^2 = constant. Derivative of a constant is 0.
simplifies eqtn to:
p0^2 + 2*p0*d + d^2
Break down the eqtn component wise:
x0 ^2 + 2*x0*xd + xd^2
dt/dx0 = 2*x0 + 2xD
dt/dxd = 2*x0 + 2*xd
the equations are a function of t because t is the value in the parametric equation where the intersections occur.
Do I now stick these derivatives together?
What the hell do I do now?
I need to do the same thing to the y and z components.
Surely there is a simpler way to take derivatives of parametric equations?
This is what happens when schools cancel maths subjects.