本文整理汇总了C++中GeoBounds::GetHeight方法的典型用法代码示例。如果您正苦于以下问题:C++ GeoBounds::GetHeight方法的具体用法?C++ GeoBounds::GetHeight怎么用?C++ GeoBounds::GetHeight使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类GeoBounds
的用法示例。
在下文中一共展示了GeoBounds::GetHeight方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: assert
/**
* Checks if the size difference of any dimension is more than a
* factor of two. This is used to check whether the terrain has to be
* redrawn after zooming in.
*/
static bool
IsLargeSizeDifference(const GeoBounds &a, const GeoBounds &b)
{
assert(a.IsValid());
assert(b.IsValid());
return a.GetWidth().Native() > Double(b.GetWidth().Native()) ||
a.GetHeight().Native() > Double(b.GetHeight().Native());
}
示例2: double
void
RasterProjection::Set(const GeoBounds &bounds,
unsigned width, unsigned height)
{
x_scale = double(width) / bounds.GetWidth().Native();
left = AngleToWidth(bounds.GetWest());
y_scale = double(height) / bounds.GetHeight().Native();
top = AngleToHeight(bounds.GetNorth());
}
示例3: fixed
void
RasterProjection::Set(const GeoBounds &bounds,
unsigned width, unsigned height)
{
x_scale = fixed(width) / bounds.GetWidth().Native();
left = int(bounds.GetWest().Native() * x_scale);
y_scale = fixed(height) / bounds.GetHeight().Native();
top = int(bounds.GetNorth().Native() * y_scale);
}