Transformation: Twisting around z-axis

Definition: inverse mapping
t = (z-z1)/(z2-z1)
theta = (1-t)*theta1 + t*theta2
x’=x*cos(theta)+y*sin(theta)
y’=-x*sin(theta)+y*cos(theta)

Call: hfTwistZ(xt,z1,z2,theta1,theta2);

Parameters:

xt - point coordinates array to be changed

z1, z2 - end points of z-interval

theta1, theta2 - rotation angles in radians for end points

Test file: twist.hf

Transformation: Twisting around y-axis

Definition: inverse mapping
t = (y-y1)/(y2-y1)
theta = (1-t)*theta1 + t*theta2
z’=z*cos(theta)+x*sin(theta)
x’=-z*sin(theta)+x*cos(theta)

Call: hfTwistY(xt,z1,z2,theta1,theta2);

Parameters:

xt - point coordinates array to be changed

z1, z2 - end points of z-interval

theta1, theta2 - rotation angles in radians for end points

Test file: twist.hf

Transformation: Twisting around x-axis

Definition: inverse mapping
t = (x-x1)/(x2-x1)
theta = (1-t)*theta1 + t*theta2
y’=y*cos(theta)+z*sin(theta)
z’=-y*sin(theta)+z*cos(theta)

Call: hfTwistX(xt,z1,z2,theta1,theta2);

Parameters:

xt - point coordinates array to be changed

z1, z2 - end points of z-interval

theta1, theta2 - rotation angles in radians for end points

Test file: twist.hf

hyperfun/lib_twist.txt · Last modified: 2008/12/11 10:16 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