Skip to content

Commit

Permalink
Merge pull request #4026 from AnalyticalGraphicsInc/tweak-fov
Browse files Browse the repository at this point in the history
Fix Matrix4 exception message
  • Loading branch information
bagnell authored Jun 17, 2016
2 parents c9443d1 + 1dfa1ae commit ac4c034
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/Core/Matrix4.js
Original file line number Diff line number Diff line change
Expand Up @@ -652,15 +652,15 @@ define([
* @param {Matrix4} result The object in which the result will be stored.
* @returns {Matrix4} The modified result parameter.
*
* @exception {DeveloperError} fovY must be in [0, PI).
* @exception {DeveloperError} fovY must be in (0, PI].
* @exception {DeveloperError} aspectRatio must be greater than zero.
* @exception {DeveloperError} near must be greater than zero.
* @exception {DeveloperError} far must be greater than zero.
*/
Matrix4.computePerspectiveFieldOfView = function(fovY, aspectRatio, near, far, result) {
//>>includeStart('debug', pragmas.debug);
if (fovY <= 0.0 || fovY > Math.PI) {
throw new DeveloperError('fovY must be in [0, PI).');
throw new DeveloperError('fovY must be in (0, PI].');
}
if (aspectRatio <= 0.0) {
throw new DeveloperError('aspectRatio must be greater than zero.');
Expand Down

0 comments on commit ac4c034

Please sign in to comment.