Translation for an ellipsoid ?
10 views (last 30 days)
Is it possible to translate an ellipsoid after it is rotated. I have understood the usage of rotate function for doing this.
rotate(h2,[1 0 0],phix_d);
However, there does not seem to exist a similar function for translation. Is there anyway to do this such that later on I need the coordinates of the rotated followed by translated ellipsoid.
Catalytic on 10 Jun 2019
Edited: Catalytic on 10 Jun 2019
Is there anyway to do this such that later on I need the coordinates of the rotated followed by translated ellipsoid.
You can do all manner of translations and rotations in combination with one another using makehgtform,
[x, y, z] = ellipsoid(0,0,0,5.9,3.25,3.25,30);
T = hgtransform('Parent',gca);
T.Matrix=makehgtform('yrotate',pi/4,'translate',[-15 -10 0]);