src/shapes/SurfaceSector.js
function (sector, attributes) {
            if (!sector) {
                throw new ArgumentError(
                    Logger.logMessage(Logger.LEVEL_SEVERE, "SurfaceSector", "constructor", "missingSector"));
            }

            SurfaceShape.call(this, attributes);

            /**
             * This shape's sector.
             * @type {Sector}
             */
            this._sector = sector;

            // The default path type for a surface sector is linear so that it represents a bounding box by default.
            this._pathType = WorldWind.LINEAR;
        }
function (sector, attributes) {
            if (!sector) {
                throw new ArgumentError(
                    Logger.logMessage(Logger.LEVEL_SEVERE, "SurfaceSector", "constructor", "missingSector"));
            }

            SurfaceShape.call(this, attributes);

            /**
             * This shape's sector.
             * @type {Sector}
             */
            this._sector = sector;

            // The default path type for a surface sector is linear so that it represents a bounding box by default.
            this._pathType = WorldWind.LINEAR;
        }
function ( sector , attributes ) { if ( ! sector ) { throw new ArgumentError ( Logger . logMessage ( Logger . LEVEL_SEVERE , "SurfaceSector" , "constructor" , "missingSector" ) ) ; } SurfaceShape . call ( this , attributes ) ; /**
             * This shape's sector.
             * @type {Sector}
             */ this . _sector = sector ; // The default path type for a surface sector is linear so that it represents a bounding box by default. this . _pathType = WorldWind . LINEAR ; }
Constructs a surface sector.
@alias SurfaceSector
@constructor
@augments SurfaceShape
@classdesc Represents a sector draped over the terrain surface. The sector is specified as a rectangular
region in geographic coordinates. By default, a surface sector is drawn with a linear path, see
{@link SurfaceShape#pathType}.
<p>
SurfaceSector uses the following attributes from its associated shape attributes bundle:
<ul>
<li>Draw interior</li>
<li>Draw outline</li>
<li>Interior color</li>
<li>Outline color</li>
<li>Outline width</li>
<li>Outline stipple factor</li>
<li>Outline stipple pattern</li>
</ul>
@param {Sector} sector This surface sector's sector.
@param {ShapeAttributes} attributes The attributes to apply to this shape. May be null, in which case
attributes must be set directly before the shape is drawn.
@throws {ArgumentError} If the specified boundaries are null or undefined.
Constructs a surface sector .