I'm trying to find the parametric equation for a cone with its apex at the origin, an aperture of $2\phi$, and an axis parallel to some vector $\vec d$. The cone is right-circular and is meant to be able to extend indefinitely as $t$ increases.
The idea is to model the shape of insect repellent spray as it is released from an aerosol can. The spray begins when $t=0$ and continues for all $t \ge 0$. The specified direction vector $\vec d$ is meant to determine the speed of propagation of the cone (in terms of $t$) as well as the direction of propagation (from the apex to the center of the base).
So far I've tried assuming that a general cone along the z-axis with apex at the origin and equation $\begin{pmatrix} x \\ y \\ z \end{pmatrix} = t \begin{pmatrix} \tan(\phi) \cos(\theta) \\ \tan(\phi) \sin(\theta) \\ 1 \end{pmatrix}$ has a direction vector of $\vec a =\begin{pmatrix} 0 \\ 0 \\ 1 \end{pmatrix}$. If I want that cone to go in another direction $\vec d$ than I can use trigonometry to find the rotation angles between $\vec d$ and $\vec a$ along each x-, y-, and z-axis; put those values into the three elemental rotation matrices; and apply those matrices to the original cone equation. This didn't really work out though.
Then I found this post and the implicit cone equation $\vec u \cdot \vec d - |\vec u||\vec v|\cos(\phi) = 0$ (for $\vec u = [x, y, z]$ and some direction vector $\vec d = [d_1, d_2, d_3]$). Only problem is I've never heard the term 'implicit' before and I don't know how to turn that equation into a vector form.
If anyone is able to convert that implicit cone equation into vector form and/or give me the vector equation for a right-circular cone with any direction, I would really appreciate it.
For a cone representing the dispersion of a substrate through a medium with the following properties:
Apex displacement vector $\vec{s}=[\matrix{s_x \ s_y \ s_z}]$,
Axis direction vector $\vec{d}=[\matrix{d_x \ d_y \ d_z}]$ (non-zero),
Internal angle $0 < \phi < 2\pi$,
And speed $0 < v$
Apply the following algorithm to obtain the vector equation of that cone:
I haven't figured out how to turn this into one equation though, what with those if/else statements. I was thinking maybe a bunch of kronecker-delta's somehow? But then the $\vec{j}$ part of the equation just got so long that it wasn't worth it. And then they would all have to be substituted as the value for $\vec{k}$ and it was just too confusing.