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

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

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

Angle.fromRadians介绍

[英]Obtains an angle from a specified number of radians.
[中]从指定的弧度数获取角度。

代码示例

代码示例来源:origin: com.bitplan.radolan/com.bitplan.radolan

  1. public final Angle addRadians(double radians)
  2. {
  3. return Angle.fromRadians(this.radians + radians);
  4. }

代码示例来源:origin: com.bitplan.radolan/com.bitplan.radolan

  1. public final Angle subtractRadians(double radians)
  2. {
  3. return Angle.fromRadians(this.radians - radians);
  4. }

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

  1. public final Angle addRadians(double radians)
  2. {
  3. return Angle.fromRadians(this.radians + radians);
  4. }

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

  1. public final Angle subtractRadians(double radians)
  2. {
  3. return Angle.fromRadians(this.radians - radians);
  4. }

代码示例来源:origin: com.bitplan.radolan/com.bitplan.radolan

  1. public static Angle atan(double tan)
  2. { //Tom: this method is not used, should we delete it? (13th Dec 06)
  3. return Angle.fromRadians(Math.atan(tan));
  4. }

代码示例来源:origin: com.bitplan.radolan/com.bitplan.radolan

  1. public static Angle asin(double sine)
  2. {
  3. return Angle.fromRadians(Math.asin(sine));
  4. }

代码示例来源:origin: com.bitplan.radolan/com.bitplan.radolan

  1. public static Angle acos(double cosine)
  2. { //Tom: this method is not used, should we delete it? (13th Dec 06)
  3. return Angle.fromRadians(Math.acos(cosine));
  4. }

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

  1. public static Angle atan(double tan)
  2. { //Tom: this method is not used, should we delete it? (13th Dec 06)
  3. return Angle.fromRadians(Math.atan(tan));
  4. }

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

  1. public static Angle asin(double sine)
  2. {
  3. return Angle.fromRadians(Math.asin(sine));
  4. }

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

  1. public static Angle acos(double cosine)
  2. { //Tom: this method is not used, should we delete it? (13th Dec 06)
  3. return Angle.fromRadians(Math.acos(cosine));
  4. }

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

  1. public final Angle getRotationY()
  2. {
  3. double yRadians = Math.asin(this.m13);
  4. if (Double.isNaN(yRadians))
  5. return null;
  6. return Angle.fromRadians(yRadians);
  7. }

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

  1. public final Angle getRotationX()
  2. {
  3. double radians = Math.atan2((2.0 * this.x * this.w) - (2.0 * this.y * this.z),
  4. 1.0 - 2.0 * (this.x * this.x) - 2.0 * (this.z * this.z));
  5. if (Double.isNaN(radians))
  6. return null;
  7. return Angle.fromRadians(radians);
  8. }

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

  1. /**
  2. * Creates a new <code>Sector</code> and initializes it to the specified angles. The angles are assumed to be
  3. * normalized to +/- \u03c0/2 radians latitude and +/- \u03c0 radians longitude, but this method does not verify
  4. * that.
  5. *
  6. * @param minLatitude the sector's minimum latitude in radians.
  7. * @param maxLatitude the sector's maximum latitude in radians.
  8. * @param minLongitude the sector's minimum longitude in radians.
  9. * @param maxLongitude the sector's maximum longitude in radians.
  10. *
  11. * @return the new <code>Sector</code>
  12. */
  13. public static Sector fromRadians(double minLatitude, double maxLatitude, double minLongitude,
  14. double maxLongitude)
  15. {
  16. return new Sector(Angle.fromRadians(minLatitude), Angle.fromRadians(maxLatitude), Angle.fromRadians(
  17. minLongitude), Angle.fromRadians(maxLongitude));
  18. }

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

  1. public final Angle getRotationZ()
  2. {
  3. double radians = Math.asin((2.0 * this.x * this.y) + (2.0 * this.z * this.w));
  4. if (Double.isNaN(radians))
  5. return null;
  6. return Angle.fromRadians(radians);
  7. }

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

  1. public final Angle getRotationY()
  2. {
  3. double radians = Math.atan2((2.0 * this.y * this.w) - (2.0 * this.x * this.z),
  4. 1.0 - (2.0 * this.y * this.y) - (2.0 * this.z * this.z));
  5. if (Double.isNaN(radians))
  6. return null;
  7. return Angle.fromRadians(radians);
  8. }

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

  1. public static Position fromRadians(double latitude, double longitude, double elevation)
  2. {
  3. return new Position(Angle.fromRadians(latitude), Angle.fromRadians(longitude), elevation);
  4. }

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

  1. /**
  2. * Computes the location on a rhumb line with the given starting location, rhumb azimuth, and arc distance along the
  3. * line.
  4. *
  5. * @param p LatLon of the starting location
  6. * @param rhumbAzimuthRadians rhumb azimuth angle (clockwise from North), in radians
  7. * @param pathLengthRadians arc distance to travel, in radians
  8. *
  9. * @return LatLon location on the rhumb line.
  10. */
  11. public static LatLon rhumbEndPosition(LatLon p, double rhumbAzimuthRadians, double pathLengthRadians)
  12. {
  13. if (p == null)
  14. {
  15. throw new IllegalArgumentException("LatLon Is Null");
  16. }
  17. return rhumbEndPosition(p, Angle.fromRadians(rhumbAzimuthRadians), Angle.fromRadians(pathLengthRadians));
  18. }

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

  1. /**
  2. * Computes the location on a great circle arc with the given starting location, azimuth, and arc distance.
  3. *
  4. * @param p LatLon of the starting location
  5. * @param greatCircleAzimuthRadians great circle azimuth angle (clockwise from North), in radians
  6. * @param pathLengthRadians arc distance to travel, in radians
  7. *
  8. * @return LatLon location on the great circle arc.
  9. */
  10. public static LatLon greatCircleEndPosition(LatLon p, double greatCircleAzimuthRadians, double pathLengthRadians)
  11. {
  12. if (p == null)
  13. {
  14. throw new IllegalArgumentException("Lat Lon Is Null");
  15. }
  16. return greatCircleEndPosition(p,
  17. Angle.fromRadians(greatCircleAzimuthRadians), Angle.fromRadians(pathLengthRadians));
  18. }

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

  1. @Nonnull
  2. public static Angle gudermannian (final double percent)
  3. {
  4. //see http://en.wikipedia.org/wiki/Mercator_projection
  5. return Angle.fromRadians(Math.atan(Math.sinh(percent * Math.PI)));
  6. }

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

  1. public final Angle getAngle()
  2. {
  3. double w = this.w;
  4. double length = this.getLength();
  5. if (!isZero(length) && (length != 1.0))
  6. w /= length;
  7. double radians = 2.0 * Math.acos(w);
  8. if (Double.isNaN(radians))
  9. return null;
  10. return Angle.fromRadians(radians);
  11. }

相关文章