Need some trig help...

I have circle parameters that include the center X, Y, and Z along with the axis X, Y, and Z. I am looking for a subroutine/function that will convert the coordinates to a normal plane. I figure there is a calculation, and that will help if there is no routine.

Thanks - Dave

You need to choose one point on the circumference of the circle. This will form the X axis of your coordinate system (running from the centre of the circle to that point).

The Z axis is the vector along the axis of the circle.

You can then define the Y axis by crossing the Z axis with the X axis.

Use MathUtility.CreateVector to get MathVector objects for all of these.

Then any point in 3D space can be converted into your new XYZ coordinate system by creating a vector from the circle centre to that point and using MathVector.Dot with the 3 axes.