Skip to content

Commit b51a073

Browse files
committed
Merge pull request #1743 from AnalyticalGraphicsInc/fixDoc
Minor documentation fixes.
2 parents 18c4e2b + cb44065 commit b51a073

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+144
-192
lines changed

Source/Core/AxisAlignedBoundingBox.js

+10-8
Original file line numberDiff line numberDiff line change
@@ -167,10 +167,11 @@ define([
167167
* @param {AxisAlignedBoundingBox} box The bounding box to test.
168168
* @param {Cartesian4} plane The coefficients of the plane in the form <code>ax + by + cz + d = 0</code>
169169
* where the coefficients a, b, c, and d are the components x, y, z, and w
170-
* of the {Cartesian4}, respectively.
171-
* @returns {Intersect} {Intersect.INSIDE} if the entire box is on the side of the plane the normal is pointing,
172-
* {Intersect.OUTSIDE} if the entire box is on the opposite side, and {Intersect.INTERSETING}
173-
* if the box intersects the plane.
170+
* of the {@link Cartesian4}, respectively.
171+
* @returns {Intersect} {@link Intersect.INSIDE} if the entire box is on the side of the plane
172+
* the normal is pointing, {@link Intersect.OUTSIDE} if the entire box is
173+
* on the opposite side, and {@link Intersect.INTERSECTING} if the box
174+
* intersects the plane.
174175
*/
175176
AxisAlignedBoundingBox.intersect = function(box, plane) {
176177
//>>includeStart('debug', pragmas.debug);
@@ -216,10 +217,11 @@ define([
216217
*
217218
* @param {Cartesian4} plane The coefficients of the plane in the form <code>ax + by + cz + d = 0</code>
218219
* where the coefficients a, b, c, and d are the components x, y, z, and w
219-
* of the {Cartesian4}, respectively.
220-
* @returns {Intersect} {Intersect.INSIDE} if the entire box is on the side of the plane the normal is pointing,
221-
* {Intersect.OUTSIDE} if the entire box is on the opposite side, and {Intersect.INTERSETING}
222-
* if the box intersects the plane.
220+
* of the {@link Cartesian4}, respectively.
221+
* @returns {Intersect} {@link Intersect.INSIDE} if the entire box is on the side of the plane
222+
* the normal is pointing, {@link Intersect.OUTSIDE} if the entire box is
223+
* on the opposite side, and {@link Intersect.INTERSECTING} if the box
224+
* intersects the plane.
223225
*/
224226
AxisAlignedBoundingBox.prototype.intersect = function(plane) {
225227
return AxisAlignedBoundingBox.intersect(this, plane);

Source/Core/BoundingSphere.js

+11-9
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,7 @@ define([
577577

578578
/**
579579
* The number of elements used to pack the object into an array.
580-
* @Type {Number}
580+
* @type {Number}
581581
*/
582582
BoundingSphere.packedLength = 4;
583583

@@ -717,10 +717,11 @@ define([
717717
* @param {BoundingSphere} sphere The bounding sphere to test.
718718
* @param {Cartesian4} plane The coefficients of the plane in the for ax + by + cz + d = 0
719719
* where the coefficients a, b, c, and d are the components x, y, z,
720-
* and w of the {Cartesian4}, respectively.
721-
* @returns {Intersect} {Intersect.INSIDE} if the entire sphere is on the side of the plane the normal
722-
* is pointing, {Intersect.OUTSIDE} if the entire sphere is on the opposite side,
723-
* and {Intersect.INTERSETING} if the sphere intersects the plane.
720+
* and w of the {@link Cartesian4}, respectively.
721+
* @returns {Intersect} {@link Intersect.INSIDE} if the entire sphere is on the side of the plane
722+
* the normal is pointing, {@link Intersect.OUTSIDE} if the entire sphere is
723+
* on the opposite side, and {@link Intersect.INTERSECTING} if the sphere
724+
* intersects the plane.
724725
*/
725726
BoundingSphere.intersect = function(sphere, plane) {
726727
//>>includeStart('debug', pragmas.debug);
@@ -1022,10 +1023,11 @@ define([
10221023
*
10231024
* @param {Cartesian4} plane The coefficients of the plane in the for ax + by + cz + d = 0
10241025
* where the coefficients a, b, c, and d are the components x, y, z,
1025-
* and w of the {Cartesian4}, respectively.
1026-
* @returns {Intersect} {Intersect.INSIDE} if the entire sphere is on the side of the plane the normal
1027-
* is pointing, {Intersect.OUTSIDE} if the entire sphere is on the opposite side,
1028-
* and {Intersect.INTERSETING} if the sphere intersects the plane.
1026+
* and w of the {@link Cartesian4}, respectively.
1027+
* @returns {Intersect} {@link Intersect.INSIDE} if the entire sphere is on the side of the plane
1028+
* the normal is pointing, {@link Intersect.OUTSIDE} if the entire sphere is
1029+
* on the opposite side, and {@link Intersect.INTERSECTING} if the sphere
1030+
* intersects the plane.
10291031
*/
10301032
BoundingSphere.prototype.intersect = function(plane) {
10311033
return BoundingSphere.intersect(this, plane);

Source/Core/Cartesian2.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ define([
105105

106106
/**
107107
* The number of elements used to pack the object into an array.
108-
* @Type {Number}
108+
* @type {Number}
109109
*/
110110
Cartesian2.packedLength = 2;
111111

@@ -184,7 +184,7 @@ define([
184184
* Computes the value of the maximum component for the supplied Cartesian.
185185
* @memberof Cartesian2
186186
*
187-
* @param {Cartesian2} The cartesian to use.
187+
* @param {Cartesian2} cartesian The cartesian to use.
188188
* @returns {Number} The value of the maximum component.
189189
*/
190190
Cartesian2.getMaximumComponent = function(cartesian) {
@@ -201,7 +201,7 @@ define([
201201
* Computes the value of the minimum component for the supplied Cartesian.
202202
* @memberof Cartesian2
203203
*
204-
* @param {Cartesian2} The cartesian to use.
204+
* @param {Cartesian2} cartesian The cartesian to use.
205205
* @returns {Number} The value of the minimum component.
206206
*/
207207
Cartesian2.getMinimumComponent = function(cartesian) {
@@ -556,9 +556,9 @@ define([
556556
* Computes the linear interpolation or extrapolation at t using the provided cartesians.
557557
* @memberof Cartesian2
558558
*
559-
* @param start The value corresponding to t at 0.0.
560-
* @param end The value corresponding to t at 1.0.
561-
* @param t The point along t at which to interpolate.
559+
* @param {Cartesian2} start The value corresponding to t at 0.0.
560+
* @param {Cartesian2} end The value corresponding to t at 1.0.
561+
* @param {Number} t The point along t at which to interpolate.
562562
* @param {Cartesian2} [result] The object onto which to store the result.
563563
* @returns {Cartesian2} The modified result parameter or a new Cartesian2 instance if one was not provided.
564564
*/

Source/Core/Cartesian3.js

+14-14
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ define([
134134

135135
/**
136136
* The number of elements used to pack the object into an array.
137-
* @Type {Number}
137+
* @type {Number}
138138
*/
139139
Cartesian3.packedLength = 3;
140140

@@ -215,7 +215,7 @@ define([
215215
* Computes the value of the maximum component for the supplied Cartesian.
216216
* @memberof Cartesian3
217217
*
218-
* @param {Cartesian3} The cartesian to use.
218+
* @param {Cartesian3} cartesian The cartesian to use.
219219
* @returns {Number} The value of the maximum component.
220220
*/
221221
Cartesian3.getMaximumComponent = function(cartesian) {
@@ -232,7 +232,7 @@ define([
232232
* Computes the value of the minimum component for the supplied Cartesian.
233233
* @memberof Cartesian3
234234
*
235-
* @param {Cartesian3} The cartesian to use.
235+
* @param {Cartesian3} cartesian The cartesian to use.
236236
* @returns {Number} The value of the minimum component.
237237
*/
238238
Cartesian3.getMinimumComponent = function(cartesian) {
@@ -597,9 +597,9 @@ define([
597597
* Computes the linear interpolation or extrapolation at t using the provided cartesians.
598598
* @memberof Cartesian3
599599
*
600-
* @param start The value corresponding to t at 0.0.
601-
* @param end The value corresponding to t at 1.0.
602-
* @param t The point along t at which to interpolate.
600+
* @param {Cartesian3} start The value corresponding to t at 0.0.
601+
* @param {Cartesian3} end The value corresponding to t at 1.0.
602+
* @param {Number} t The point along t at which to interpolate.
603603
* @param {Cartesian3} [result] The object onto which to store the result.
604604
* @returns {Cartesian3} The modified result parameter or a new Cartesian3 instance if one was not provided.
605605
*/
@@ -773,8 +773,8 @@ define([
773773
*
774774
* @param {Number} longitude The longitude, in degrees
775775
* @param {Number} latitude The latitude, in degrees
776-
* @param {Number} [height = 0] The height, in meters, above the ellipsoid.
777-
* @param {Ellipsoid} [ellipsoid = Ellipsoid.WGS84] The ellipsoid on which the position lies.
776+
* @param {Number} [height=0.0] The height, in meters, above the ellipsoid.
777+
* @param {Ellipsoid} [ellipsoid=Ellipsoid.WGS84] The ellipsoid on which the position lies.
778778
* @param {Cartesian3} [result] The object onto which to store the result.
779779
*
780780
* @returns {Cartesian3} The position
@@ -807,8 +807,8 @@ define([
807807
*
808808
* @param {Number} longitude The longitude, in radians
809809
* @param {Number} latitude The latitude, in radians
810-
* @param {Number} [height = 0] The height, in meters, above the ellipsoid.
811-
* @param {Ellipsoid} [ellipsoid = Ellipsoid.WGS84] The ellipsoid on which the position lies.
810+
* @param {Number} [height=0.0] The height, in meters, above the ellipsoid.
811+
* @param {Ellipsoid} [ellipsoid=Ellipsoid.WGS84] The ellipsoid on which the position lies.
812812
* @param {Cartesian3} [result] The object onto which to store the result.
813813
*
814814
* @returns {Cartesian3} The position
@@ -847,7 +847,7 @@ define([
847847
* @memberof Cartesian3
848848
*
849849
* @param {Number[]} coordinates A list of longitude and latitude values. Values alternate [longitude, latitude, longitude, latitude...].
850-
* @param {Ellipsoid} [ellipsoid = Ellipsoid.WGS84] The ellipsoid on which the coordinates lie.
850+
* @param {Ellipsoid} [ellipsoid=Ellipsoid.WGS84] The ellipsoid on which the coordinates lie.
851851
* @param {Cartesian3[]} [result] An array of Cartesian3 objects to store the result.
852852
*
853853
* @returns {Cartesian3[]} The array of positions.
@@ -875,7 +875,7 @@ define([
875875
* @memberof Cartesian3
876876
*
877877
* @param {Number[]} coordinates A list of longitude and latitude values. Values alternate [longitude, latitude, longitude, latitude...].
878-
* @param {Ellipsoid} [ellipsoid = Ellipsoid.WGS84] The ellipsoid on which the coordinates lie.
878+
* @param {Ellipsoid} [ellipsoid=Ellipsoid.WGS84] The ellipsoid on which the coordinates lie.
879879
* @param {Cartesian3[]} [result] An array of Cartesian3 objects to store the result.
880880
*
881881
* @returns {Cartesian3[]} The array of positions.
@@ -917,7 +917,7 @@ define([
917917
* @memberof Cartesian3
918918
*
919919
* @param {Number[]} coordinates A list of longitude, latitude and height values. Values alternate [longitude, latitude, height,, longitude, latitude, height...].
920-
* @param {Ellipsoid} [ellipsoid = Ellipsoid.WGS84] The ellipsoid on which the position lies.
920+
* @param {Ellipsoid} [ellipsoid=Ellipsoid.WGS84] The ellipsoid on which the position lies.
921921
* @param {Cartesian3[]} [result] An array of Cartesian3 objects to store the result.
922922
*
923923
* @returns {Cartesian3[]} The array of positions.
@@ -953,7 +953,7 @@ define([
953953
* @memberof Cartesian3
954954
*
955955
* @param {Number[]} coordinates A list of longitude, latitude and height values. Values alternate [longitude, latitude, height,, longitude, latitude, height...].
956-
* @param {Ellipsoid} [ellipsoid = Ellipsoid.WGS84] The ellipsoid on which the position lies.
956+
* @param {Ellipsoid} [ellipsoid=Ellipsoid.WGS84] The ellipsoid on which the position lies.
957957
* @param {Cartesian3[]} [result] An array of Cartesian3 objects to store the result.
958958
*
959959
* @returns {Cartesian3[]} The array of positions.

Source/Core/Cartesian4.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ define([
132132

133133
/**
134134
* The number of elements used to pack the object into an array.
135-
* @Type {Number}
135+
* @type {Number}
136136
*/
137137
Cartesian4.packedLength = 4;
138138

@@ -217,7 +217,7 @@ define([
217217
* Computes the value of the maximum component for the supplied Cartesian.
218218
* @memberof Cartesian4
219219
*
220-
* @param {Cartesian4} The cartesian to use.
220+
* @param {Cartesian4} cartesian The cartesian to use.
221221
* @returns {Number} The value of the maximum component.
222222
*/
223223
Cartesian4.getMaximumComponent = function(cartesian) {
@@ -234,7 +234,7 @@ define([
234234
* Computes the value of the minimum component for the supplied Cartesian.
235235
* @memberof Cartesian4
236236
*
237-
* @param {Cartesian4} The cartesian to use.
237+
* @param {Cartesian4} cartesian The cartesian to use.
238238
* @returns {Number} The value of the minimum component.
239239
*/
240240
Cartesian4.getMinimumComponent = function(cartesian) {
@@ -610,9 +610,9 @@ define([
610610
* Computes the linear interpolation or extrapolation at t using the provided cartesians.
611611
* @memberof Cartesian4
612612
*
613-
* @param start The value corresponding to t at 0.0.
614-
* @param end The value corresponding to t at 1.0.
615-
* @param t The point along t at which to interpolate.
613+
* @param {Cartesian4} start The value corresponding to t at 0.0.
614+
* @param {Cartesian4}end The value corresponding to t at 1.0.
615+
* @param {Number} t The point along t at which to interpolate.
616616
* @param {Cartesian4} [result] The object onto which to store the result.
617617
* @returns {Cartesian4} The modified result parameter or a new Cartesian4 instance if one was not provided.
618618
*/

Source/Core/CircleOutlineGeometry.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ define([
2323
* @param {Number} [options.height=0.0] The height above the ellipsoid.
2424
* @param {Number} [options.granularity=0.02] The angular distance between points on the circle in radians.
2525
* @param {Number} [options.extrudedHeight=0.0] The height of the extrusion relative to the ellipsoid.
26-
* @param {Number} [options.numberOfVerticalLines = 16] Number of lines to draw between the top and bottom of an extruded circle.
26+
* @param {Number} [options.numberOfVerticalLines=16] Number of lines to draw between the top and bottom of an extruded circle.
2727
*
2828
* @exception {DeveloperError} radius must be greater than zero.
2929
* @exception {DeveloperError} granularity must be greater than zero.

Source/Core/ClockRange.js

-3
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ define(function() {
1717
*
1818
* @type {Number}
1919
* @constant
20-
* @default 0
2120
*/
2221
UNBOUNDED : 0,
2322

@@ -27,7 +26,6 @@ define(function() {
2726
*
2827
* @type {Number}
2928
* @constant
30-
* @default 1
3129
*/
3230
CLAMPED : 1,
3331

@@ -39,7 +37,6 @@ define(function() {
3937
*
4038
* @type {Number}
4139
* @constant
42-
* @default 2
4340
*/
4441
LOOP_STOP : 2
4542
};

Source/Core/ClockStep.js

-3
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ define(function() {
1818
*
1919
* @type {Number}
2020
* @constant
21-
* @default 0
2221
*/
2322
TICK_DEPENDENT : 0,
2423

@@ -28,7 +27,6 @@ define(function() {
2827
*
2928
* @type {Number}
3029
* @constant
31-
* @default 1
3230
*/
3331
SYSTEM_CLOCK_MULTIPLIER : 1,
3432

@@ -38,7 +36,6 @@ define(function() {
3836
*
3937
* @type {Number}
4038
* @constant
41-
* @default 2
4239
*/
4340
SYSTEM_CLOCK : 2
4441
};

Source/Core/Color.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ define([
373373

374374
/**
375375
* The number of elements used to pack the object into an array.
376-
* @Type {Number}
376+
* @type {Number}
377377
*/
378378
Color.packedLength = 4;
379379

@@ -434,7 +434,7 @@ define([
434434
* @memberof Color
435435
*
436436
* @param {Number} number The number to be converted.
437-
* @returns {number} The converted number.
437+
* @returns {Number} The converted number.
438438
*/
439439
Color.byteToFloat = function(number) {
440440
return number / 255.0;
@@ -446,7 +446,7 @@ define([
446446
* @memberof Color
447447
*
448448
* @param {Number} number The number to be converted.
449-
* @returns {number} The converted number.
449+
* @returns {Number} The converted number.
450450
*/
451451
Color.floatToByte = function(number) {
452452
return number === 1.0 ? 255.0 : (number * 256.0) | 0;

Source/Core/CornerType.js

-3
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ define(function() {
1414
* Corner is circular.
1515
* @type {Number}
1616
* @constant
17-
* @default 0
1817
*/
1918
ROUNDED : 0,
2019

@@ -26,7 +25,6 @@ define(function() {
2625
* Corner point is the intersection of adjacent edges.
2726
* @type {Number}
2827
* @constant
29-
* @default 1
3028
*/
3129
MITERED : 1,
3230

@@ -38,7 +36,6 @@ define(function() {
3836
* Corner is clipped.
3937
* @type {Number}
4038
* @constant
41-
* @default 2
4239
*/
4340
BEVELED : 2
4441
};

Source/Core/CorridorGeometry.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -626,14 +626,14 @@ define([
626626
* @alias CorridorGeometry
627627
* @constructor
628628
*
629-
* @param {Cartesian3[]} options.positions An array of {Cartesain3} positions that define the center of the corridor.
629+
* @param {Cartesian3[]} options.positions An array of positions that define the center of the corridor.
630630
* @param {Number} options.width The distance between the edges of the corridor in meters.
631631
* @param {Ellipsoid} [options.ellipsoid=Ellipsoid.WGS84] The ellipsoid to be used as a reference.
632632
* @param {Number} [options.granularity=CesiumMath.RADIANS_PER_DEGREE] The distance, in radians, between each latitude and longitude. Determines the number of positions in the buffer.
633633
* @param {Number} [options.height=0] The distance in meters between the ellipsoid surface and the positions.
634634
* @param {Number} [options.extrudedHeight] The distance in meters between the ellipsoid surface and the extrusion.
635635
* @param {VertexFormat} [options.vertexFormat=VertexFormat.DEFAULT] The vertex attributes to be computed.
636-
* @param {Boolean} [options.cornerType = CornerType.ROUNDED] Determines the style of the corners.
636+
* @param {Boolean} [options.cornerType=CornerType.ROUNDED] Determines the style of the corners.
637637
*
638638
* @see CorridorGeometry.createGeometry
639639
*

Source/Core/CorridorOutlineGeometry.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -306,13 +306,13 @@ define([
306306
* @alias CorridorOutlineGeometry
307307
* @constructor
308308
*
309-
* @param {Cartesian3[]} options.positions An array of {Cartesain3} positions that define the center of the corridor outline.
309+
* @param {Cartesian3[]} options.positions An array of positions that define the center of the corridor outline.
310310
* @param {Number} options.width The distance between the edges of the corridor outline.
311311
* @param {Ellipsoid} [options.ellipsoid=Ellipsoid.WGS84] The ellipsoid to be used as a reference.
312312
* @param {Number} [options.granularity=CesiumMath.RADIANS_PER_DEGREE] The distance, in radians, between each latitude and longitude. Determines the number of positions in the buffer.
313313
* @param {Number} [options.height=0] The distance between the ellipsoid surface and the positions.
314314
* @param {Number} [options.extrudedHeight] The distance between the ellipsoid surface and the extrusion.
315-
* @param {Boolean} [options.cornerType = CornerType.ROUNDED] Determines the style of the corners.
315+
* @param {Boolean} [options.cornerType=CornerType.ROUNDED] Determines the style of the corners.
316316
*
317317
* @see CorridorOutlineGeometry.createGeometry
318318
*

0 commit comments

Comments
 (0)