Given three points non-collinear
R in 3D, I need a generic method to generate
z' unit vectors that behave like origin of local coordinate system.
y' vectos should be on the plane that is defined by
The part that I could not figure out was:
After calculating the centroid
C, I can pick
normalize(vec(PQ) + vec(PC)) but could not figure out how to generate
The method should be generic. I know this is possible without rotations etc. but how?
I'm going to write a program in Java, so I'd appreciate answers with step-by-step.