Cartesian extremities of a 3d segment

44 Views Asked by At

I have a segment in 3d space and I want to calculate its extremities. I know the cartesian coordinates (x,y,z) of the segment's middle point, the segment's length L and the segment's orientation using quaternions (qx,qy,qz,qw)...so my question is how to get both cartesian extremities of the segment? Many thanks