orbits-lib/resources/orbits/transformation.rb
# Right-handed coordinate system, rotations appear counter-clockwise
# when their axis points at the observer
Right-handed coordinate system, rotations appear counter-clockwise
when their axis points at the observer
Right - handed coordinate system rotations appear counter - clockwise when their axis points at the observer
def rotate_x(t)
      sin_t = sin(t)
      cos_t = cos(t)
      @matrix *= Matrix.rows(
        [[1,     0,      0],
         [0, cos_t, -sin_t],
         [0, sin_t,  cos_t]])
      self
    end
def rotate_x ( t ) sin_t = sin ( t ) cos_t = cos ( t ) @matrix *= Matrix . rows ( [ [ 1 , 0 , 0 ] , [ 0 , cos_t , - sin_t ] , [ 0 , sin_t , cos_t ] ] ) self end
Right-handed coordinate system, rotations appear counter-clockwise
when their axis points at the observer
Right - handed coordinate system rotations appear counter - clockwise when their axis points at the observer
t
<not_specific>