gpt4 book ai didi

gov.nasa.worldwind.WorldWindow.pixelSizeAtDistance()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-23 01:47:05 28 4
gpt4 key购买 nike

本文整理了Java中gov.nasa.worldwind.WorldWindow.pixelSizeAtDistance()方法的一些代码示例,展示了WorldWindow.pixelSizeAtDistance()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WorldWindow.pixelSizeAtDistance()方法的具体详情如下:
包路径:gov.nasa.worldwind.WorldWindow
类名称:WorldWindow
方法名:pixelSizeAtDistance

WorldWindow.pixelSizeAtDistance介绍

[英]Returns the height of a pixel at a given distance from the eye point. This method assumes the model of a screen composed of rectangular pixels, where pixel coordinates denote infinitely thin space between pixels. The units of the returned size are in meters per pixel.

The result of this method is undefined if the distance is negative.
[中]返回距视点给定距离处像素的高度。该方法假设屏幕模型由矩形像素组成,其中像素坐标表示像素之间无限薄的空间。返回大小的单位为米/像素。
如果距离为负,则此方法的结果未定义。

代码示例

代码示例来源:origin: NASAWorldWind/WorldWindAndroid

double metersPerPixel = this.wwd.pixelSizeAtDistance(alt);
double forwardMeters = (dy - this.lastY) * metersPerPixel;
double sideMeters = -(dx - this.lastX) * metersPerPixel;

代码示例来源:origin: NASAWorldWind/WorldWindAndroid

double metersPerPixel = this.wwd.pixelSizeAtDistance(rng);
double forwardMeters = (dy - this.lastY) * metersPerPixel;
double sideMeters = -(dx - this.lastX) * metersPerPixel;

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com