Recent content by lightningbolt

  1. L

    Rotation matrix for azimuth and zenith angles

    @SonyAD, If you change θ and φ in spherical coordinates and convert to Cartesian, it won't result in the change you expect. It gives garbage values. i.e I can't just add 5 degree to θ or φ, if i want to rotate the shape 5 degree. Thanks.
  2. L

    Rotation matrix for azimuth and zenith angles

    I have a shape with spherical coordinate (r, theta, phi) which I can convert to Cartesian. I want to apply rotation to the shape by incrementing theta & phi. I figured out the matrix for rotating azimuth angle is { {cos(theta), -sin(theta), 0} {sin(theta), cos(theta), 0} { 0, 0, 1} } How...
Back
Top