3 #pragma IgorVersion = 6.1 4 #pragma ModuleName = PearlVectorOperations 49 return xx * cos(angle * pi / 180) - yy * sin(angle * pi / 180)
64 return xx * sin(angle * pi / 180) + yy * cos(angle * pi / 180)
74 make /n=(3,3)/free matrix
96 variable si = sin(angle * pi / 180)
97 variable co = cos(angle * pi / 180)
124 variable si = sin(angle * pi / 180)
125 variable co = cos(angle * pi / 180)
152 variable si = sin(angle * pi / 180)
153 variable co = cos(angle * pi / 180)
180 make /n=3/d/free w_temp_rotate_x
182 nvec = max(DimSize(inout, 1), 1)
183 for (ivec = 0; ivec < nvec; ivec += 1)
185 w_temp_rotate_x = inout[p][ivec]
186 matrixop /free w_temp_rotate_x_result = m_rotation_x x w_temp_rotate_x
187 inout[0,2][ivec] = w_temp_rotate_x_result[p]
208 make /n=3/d/free w_temp_rotate_y
210 nvec = max(DimSize(inout, 1), 1)
211 for (ivec = 0; ivec < nvec; ivec += 1)
213 w_temp_rotate_y = inout[p][ivec]
214 matrixop /free w_temp_rotate_y_result = m_rotation_y x w_temp_rotate_y
215 inout[0,2][ivec] = w_temp_rotate_y_result[p]
236 make /n=3/d/free w_temp_rotate_z
238 nvec = max(DimSize(inout, 1), 1)
239 for (ivec = 0; ivec < nvec; ivec += 1)
241 w_temp_rotate_z = inout[p][ivec]
242 matrixop /free w_temp_rotate_z_result = m_rotation_z x w_temp_rotate_z
243 inout[0,2][ivec] = w_temp_rotate_z_result[p]
wave set_rotation_x(wave matrix, variable angle)
calculate a matrix representing a 3-vector rotation around the x axis.
variable rotate_x_wave(wave inout, variable angle)
rotate a wave of 3-vectors about the x axis.
variable rotate2d_x(variable xx, variable yy, variable angle)
rotate a 2D cartesian vector and returns its x component.
wave set_rotation_z(wave matrix, variable angle)
calculate a matrix representing a 3-vector rotation around the z axis
variable rotate_y_wave(wave inout, variable angle)
rotates a wave of 3-vectors about the y axis
variable rotate2d_y(variable xx, variable yy, variable angle)
rotate a 2D cartesian vector and returns its y component.
variable rotate_z_wave(wave inout, variable angle)
rotates a wave of 3-vectors about the z axis
wave create_rotation_matrix_free()
create a free matrix wave which represents the 3-vector identity.
wave set_rotation_y(wave matrix, variable angle)
calculate a matrix representing a 3-vector rotation around the y axis