-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2445 from AnalyticalGraphicsInc/entity-zoom-2d
EntityView 2D rotation
- Loading branch information
Showing
3 changed files
with
74 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/*global defineSuite*/ | ||
defineSuite(['Scene/HeadingPitchRange'], function(HeadingPitchRange) { | ||
"use strict"; | ||
/*global jasmine,describe,xdescribe,it,xit,expect,beforeEach,afterEach,beforeAll,afterAll,spyOn,runs,waits,waitsFor*/ | ||
|
||
it('construct with default values', function() { | ||
var hpr = new HeadingPitchRange(); | ||
expect(hpr.heading).toEqual(0.0); | ||
expect(hpr.pitch).toEqual(0.0); | ||
expect(hpr.range).toEqual(0.0); | ||
}); | ||
|
||
it('construct with all values', function() { | ||
var hpr = new HeadingPitchRange(1.0, 2.0, 3.0); | ||
expect(hpr.heading).toEqual(1.0); | ||
expect(hpr.pitch).toEqual(2.0); | ||
expect(hpr.range).toEqual(3.0); | ||
}); | ||
|
||
it('clone with a result parameter', function() { | ||
var hpr = new HeadingPitchRange(1.0, 2.0, 3.0); | ||
var result = new HeadingPitchRange(); | ||
var returnedResult = HeadingPitchRange.clone(hpr, result); | ||
expect(hpr).toNotBe(result); | ||
expect(result).toBe(returnedResult); | ||
expect(hpr).toEqual(result); | ||
}); | ||
|
||
it('clone works with a result parameter that is an input parameter', function() { | ||
var hpr = new HeadingPitchRange(1.0, 2.0, 3.0); | ||
var returnedResult = HeadingPitchRange.clone(hpr, hpr); | ||
expect(hpr).toBe(returnedResult); | ||
}); | ||
|
||
}); |