coord-transf.2d elements3d elementsnon geo scriptsfunctionscontrol statem.attributesvariousaddons
2d-transform.3d-transform.3d-complextransf.-stack
ADD ROT MUL XFORM
Name
ROT
Syntax
ROTvectorX, vectorY, vectorZ, angle
Aufklappen Range
vectorX, type real
vectorY, type real
vectorZ, type real
angle, type real (degree)
Aufklappen Description
Rotates the coordinate system around the vector with the coordinates (0/0/0)/(vectorX/vectorY/vectorZ) about angle degrees.
Aufklappen Example
ROT 0,0,1, angle
according to ROTZ angle

ROT 0,1,0, angle
according to ROTY angle

ROT 1,0,0, angle
according to ROTX angle
Aufklappen Context
3D-script
Aufklappen Tips and Tricks
To remeber the rotation direction you can use the "right hand rule": If the thumb points into the direction of the positive vector (=rotation axis) and you curve the rest of the fingers a bit into the form of a fist and they show you the direction of rotation for the positive values of angle.
Aufklappen References
GDL-Handbuch 4.5 (DE) p. 22
GDL-Handbuch 5.0 (DE) p. 27
GDL-Handbuch 6.0 (DE) p. 30
GDL-Handbuch 6.5 (DE) p. 24
GDL-Handbuch 7.0 (DE) p. 24
GDL-Handbuch 8.0 (DE) p. 17
GDL-Handbuch 8.1 (DE) p. 17
GDL-Handbuch 9.0 (DE) p. 30
GDL-Handbuch 10.0 (DE) p. 28
GDL-Handbuch 11.0 (DE) p. 28
GDL Reference Guide 9.0 (INT) p. 30
GDL Reference Guide 10.0 (INT) p. 28
GDL Reference Guide 11.0 (INT) p. 28
GDL Cookbook 3.1 (EN/DE) p. 1.8