Skip to content

Commit

Permalink
removing extra radian conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
Jordan Stephens committed Dec 11, 2014
1 parent a24ca14 commit a52f4be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/kepler/param_helper.rb
Expand Up @@ -100,10 +100,10 @@ def perifocal_position(angular_momentum, eccentricity, true_anomaly)
def perifocal_velocity(angular_momentum, eccentricity, true_anomaly)
h = angular_momentum
e = eccentricity
theta = true_anomaly
theta = true_anomaly.to_rad

(MU / h) *
Vector[-Math.sin(theta.to_rad), e + Math.cos(theta.to_rad), 0]
Vector[-Math.sin(theta), e + Math.cos(theta), 0]
end
end
end

0 comments on commit a52f4be

Please sign in to comment.