newbucket.hxx File Reference

A class and associated utiltity functions to manage world scenery tiling. More...

#include <simgear/compiler.h>
#include <simgear/constants.h>
#include <simgear/math/SGMath.hxx>
#include <cmath>
#include <cstdio>
#include <ostream>
#include <string>

Go to the source code of this file.

Classes

class  SGBucket
 A class to manage world scenery tiling. More...

Defines

#define SG_BUCKET_SPAN   0.125
 standard size of a bucket in degrees (1/8 of a degree)
#define SG_HALF_BUCKET_SPAN   ( 0.5 * SG_BUCKET_SPAN )
 half of a standard SG_BUCKET_SPAN

Functions

std::ostream & operator<< (std::ostream &out, const SGBucket &b)
 Write the bucket lon, lat, x, and y to the output stream.
bool operator== (const SGBucket &b1, const SGBucket &b2)
 Compare two bucket structures for equality.

Detailed Description

A class and associated utiltity functions to manage world scenery tiling.

Definition in file newbucket.hxx.


Function Documentation

std::ostream& operator<< ( std::ostream &  out,
const SGBucket b 
) [inline]

Write the bucket lon, lat, x, and y to the output stream.

Parameters:
out output stream
b bucket

Definition at line 330 of file newbucket.hxx.

bool operator== ( const SGBucket b1,
const SGBucket b2 
) [inline]

Compare two bucket structures for equality.

Parameters:
b1 bucket 1
b2 bucket 2
Returns:
comparison result

Definition at line 343 of file newbucket.hxx.


Generated on 23 Feb 2010 for SimGear by  doxygen 1.6.1