So, my dilemma here is... I have an axis. This axis is given to me in the format of the slope of the axis in the x,y and z axes.
I need to come up with a parametric equation of a circle. This circle needs to have an axis of rotation at the given axis with a variable radius.
I've worked on this problem for days, and still haven't come up with a solution.
I'm using this circle to map the path of a satellite, programmed in C.
And help would be greatly appreciated.
Thanks!
I think an easy way to visualize this is to see it as a bunch of transformation matrices.
A circle is just $SRx$ where
$x = \left[\matrix{1\\0\\0}\right],$
$S = rI$ is a scale matrix, and
$R = \left[\matrix{\cos\theta & \sin\theta & 0 \\ \sin\theta & -\cos\theta & 0 \\ 0 & 0 & 1}\right]$
is a a rotation matrix:
Now, you want rotate that whole circle to some arbitrary direction in three dimensions, so we need a three-dimensional rotation matrix $T$, and we need an translation vector $k$. A circle is then:
$TSRx + k.$