I need to draw a circle on the plane orthogonal to a vector. I have the point which will be the center of the circle, the vector I have to be orthogonal to, the radius of the circle and the resolution of the circle.
How can I compute the coordinates of the circle ?
Something like :
double point[3] = {x, y, z}
double normal[3] = {u, v ,w}
double r = radius()
int res = resolution()
double circlePoint[3];
for (int i = 0; i < res; i++)
{
circlePoint[0] = point[0] + radius * ?
circlePoint[1] = point[1] + radius * ?
circlePoint[2] = point[2] + radius * ?
}