Rotation of 4 vetices

1 Ansicht (letzte 30 Tage)
Saeed Zahran
Saeed Zahran am 29 Sep. 2020
Kommentiert: Matt J am 1 Okt. 2020
Hello,
Hope you are fine,
I have 4 vertices that form a square,
each vertices v is of coordinate x y z
v1= [x1 y1 z1]
v2= [x2 y2 z2]
v3= [x3 y3 z3]
v4= [x4 y4 z4]
I want to rotate this square toward identified vector of direction n=[a b c]
thanks for your help
Best regards
Saeed
  2 Kommentare
Ameer Hamza
Ameer Hamza am 30 Sep. 2020
Can you explain what do you mean by rotation here? Rotation around the origin or rotation about the center of the square.
Saeed Zahran
Saeed Zahran am 30 Sep. 2020
Yes around the origin,
I want to have 3 squares othogonal to each other

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Matt J
Matt J am 30 Sep. 2020
Bearbeitet: Matt J am 30 Sep. 2020
I want to rotate this square toward identified vector of direction n=[a b c]
Meaning that [a,b,c] is the desired axis of rotation? Regardless, you can use AxelRot,
[vrotated]=AxelRot([v1;v2;v3;v4].' , deg, [a b c],[0,0,0])
  3 Kommentare
Saeed Zahran
Saeed Zahran am 1 Okt. 2020
I already have the direction as you see below of X, Y and Z, I just want to place the 4 coordinates to corresponding direction
Matt J
Matt J am 1 Okt. 2020
deg is the angle of rotation about whatever axis of rotation you want.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu 3-D Scene Control finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by