Transformation: Rotation in 3D around z-axis

Definition: inverse mapping
x’=x*cos(theta)+y*sin(theta)
y’=-x*sin(theta)+y*cos(theta)

Call: hfRotate3DZ(xt,theta);

Parameters:

xt - point coordinates array to be changed

theta - rotation angle in radians

Test file: rotate.hf

Transformation: Rotation in 3D around y-axis

Definition: inverse mapping
z’=z*cos(theta)+x*sin(theta)
x’=-z*sin(theta)+x*cos(theta)

Call: hfRotate3DY(xt,theta);

Parameters:

xt - point coordinates array to be changed

theta - rotation angle in radians

Test file: rotate.hf

Transformation: Rotation in 3D around x-axis

Definition: inverse mapping
y’=y*cos(theta)+z*sin(theta)
z’=-y*sin(theta)+z*cos(theta)

Call: hfRotate3DX(xt,theta);

Parameters:

xt - point coordinates array to be changed

theta - rotation angle in radians

Test file: rotate.hf

hyperfun/lib_rotate.txt · Last modified: 2008/12/11 10:14 by admin
This site contains HyperFun and other software that is free to use and modify under the provisions of the CGPL agreement unless otherwise stated.
Project hosted by the Digital Materialization Group
HyperFun CGPL Creative Commons License Valid CSS