function DistanceDisplayConditionGeometryInstanceAttribute(near, far) {
  near = near ?? 0.0;
  far = far ?? Number.MAX_VALUE;

  //>>includeStart('debug', pragmas.debug);
  if (far <= near) {
    throw new DeveloperError(
      "far distance must be greater than near distance.",
    );
  }
  //>>includeEnd('debug');

  /**
   * The values for the attributes stored in a typed array.
   *
   * @type {Float32Array}
   *
   * @default [0.0, 0.0, Number.MAX_VALUE]
   */
  this.value = new Float32Array([near, far]);
}
Value and type information for per-instance geometry attribute that determines if the geometry instance has a distance display condition.

@alias DistanceDisplayConditionGeometryInstanceAttribute
@constructor

@param {number} [near=0.0] The near distance.
@param {number} [far=Number.MAX_VALUE] The far distance.

@exception {DeveloperError} far must be greater than near.

@example
const instance = new Cesium.GeometryInstance({
  geometry : new Cesium.BoxGeometry({
    vertexFormat : Cesium.VertexFormat.POSITION_AND_NORMAL,
    minimum : new Cesium.Cartesian3(-250000.0, -250000.0, -250000.0),
    maximum : new Cesium.Cartesian3(250000.0, 250000.0, 250000.0)
  }),
  modelMatrix : Cesium.Matrix4.multiplyByTranslation(Cesium.Transforms.eastNorthUpToFixedFrame(
    Cesium.Cartesian3.fromDegrees(-75.59777, 40.03883)), new Cesium.Cartesian3(0.0, 0.0, 1000000.0), new Cesium.Matrix4()),
  id : 'box',
  attributes : {
    distanceDisplayCondition : new Cesium.DistanceDisplayConditionGeometryInstanceAttribute(100.0, 10000.0)
  }
});

@see GeometryInstance
@see GeometryInstanceAttribute