Skip to content

Commit

Permalink
Fix typo in Simon1994PlanetaryPositions
Browse files Browse the repository at this point in the history
We don't have a test for this case, and I have no idea how to trigger it.
It was pointed out [on the forum](https://groups.google.com/d/msg/cesium-dev/5fDx5nOCxcY/RMB95MZoeV0J).
  • Loading branch information
mramato committed Jun 30, 2015
1 parent 927f71f commit 87316cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Core/Simon1994PlanetaryPositions.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ define([
var rightAscensionOfAscendingNode = longitudeOfNode;
var trueAnomaly = meanAnomalyToTrueAnomaly(meanLongitude - longitudeOfPerigee, eccentricity);
var type = chooseOrbit(eccentricity, 0.0);
if (type === 'Hyperbolic' && Math.abs(CesiumMath.NegativePiToPi(trueAnomaly)) >= Math.acos(- 1.0 / eccentricity)) {
if (type === 'Hyperbolic' && Math.abs(CesiumMath.negativePiToPi(trueAnomaly)) >= Math.acos(- 1.0 / eccentricity)) {
throw new DeveloperError('The true anomaly of the hyperbolic orbit lies outside of the bounds of the hyperbola.');
}
perifocalToCartesianMatrix(argumentOfPeriapsis, inclination, rightAscensionOfAscendingNode, perifocalToEquatorial);
Expand Down

0 comments on commit 87316cd

Please sign in to comment.