gov.nasa.worldwind.geom.Angle.add()方法的使用及代码示例

x33g5p2x  于2022-01-17 转载在 其他  
字(1.6k)|赞(0)|评价(0)|浏览(110)

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

Angle.add介绍

[英]Obtains the sum of these two angles. Does not accept a null argument. This method is commutative, so a.add(b) and b.add(a) are equivalent. Neither this angle nor angle is changed, instead the result is returned as a new angle.
[中]获得这两个角度的和。不接受空参数。此方法是可交换的,因此a.add(b)b.add(a)是等价的。此角度和角度都不会更改,而是将结果作为新角度返回。

代码示例

代码示例来源:origin: Berico-Technologies/Geo-Coordinate-Conversion-Java

public LatLon add(LatLon that)
{
  if (that == null)
  {
    throw new IllegalArgumentException("Angle Is Null");
  }
  Angle lat = Angle.normalizedLatitude(this.latitude.add(that.latitude));
  Angle lon = Angle.normalizedLongitude(this.longitude.add(that.longitude));
  return new LatLon(lat, lon);
}

代码示例来源:origin: Berico-Technologies/Geo-Coordinate-Conversion-Java

public Position add(Position that)
{
  Angle lat = Angle.normalizedLatitude(this.latitude.add(that.latitude));
  Angle lon = Angle.normalizedLongitude(this.longitude.add(that.longitude));
  return new Position(lat, lon, this.elevation + that.elevation);
}

代码示例来源:origin: Berico-Technologies/Geo-Coordinate-Conversion-Java

public LatLon add(Position that)
{
  if (that == null)
  {
    throw new IllegalArgumentException("Angle Is Null");
  }
  Angle lat = Angle.normalizedLatitude(this.latitude.add(that.getLatitude()));
  Angle lon = Angle.normalizedLongitude(this.longitude.add(that.getLongitude()));
  return new LatLon(lat, lon);
}

代码示例来源:origin: it.tidalwave.geo/it-tidalwave-geo-viewer-spi-worldwindprovider

t2 = t1.add(dLon);

相关文章