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

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

本文整理了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

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

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

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

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

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

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

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

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

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

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

public static Angle asin(double sine)
{
  return Angle.fromRadians(Math.asin(sine));
}

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

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

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

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

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

public static Angle asin(double sine)
{
  return Angle.fromRadians(Math.asin(sine));
}

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

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

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

public final Angle getRotationY()
{
  double yRadians = Math.asin(this.m13);
  if (Double.isNaN(yRadians))
    return null;
  return Angle.fromRadians(yRadians);
}

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

public final Angle getRotationX()
{
  double radians = Math.atan2((2.0 * this.x * this.w) - (2.0 * this.y * this.z),
                1.0 - 2.0 * (this.x * this.x) - 2.0 * (this.z * this.z));
  if (Double.isNaN(radians))
    return null;
  return Angle.fromRadians(radians);
}

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

/**
 * Creates a new <code>Sector</code> and initializes it to the specified angles. The angles are assumed to be
 * normalized to +/- \u03c0/2 radians latitude and +/- \u03c0 radians longitude, but this method does not verify
 * that.
 *
 * @param minLatitude  the sector's minimum latitude in radians.
 * @param maxLatitude  the sector's maximum latitude in radians.
 * @param minLongitude the sector's minimum longitude in radians.
 * @param maxLongitude the sector's maximum longitude in radians.
 *
 * @return the new <code>Sector</code>
 */
public static Sector fromRadians(double minLatitude, double maxLatitude, double minLongitude,
  double maxLongitude)
{
  return new Sector(Angle.fromRadians(minLatitude), Angle.fromRadians(maxLatitude), Angle.fromRadians(
    minLongitude), Angle.fromRadians(maxLongitude));
}

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

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

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

public final Angle getRotationY()
{
  double radians = Math.atan2((2.0 * this.y * this.w) - (2.0 * this.x * this.z),
                1.0 - (2.0 * this.y * this.y) - (2.0 * this.z * this.z));
  if (Double.isNaN(radians))
    return null;
  return Angle.fromRadians(radians);
}

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

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

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

/**
 * Computes the location on a rhumb line with the given starting location, rhumb azimuth, and arc distance along the
 * line.
 *
 * @param p                   LatLon of the starting location
 * @param rhumbAzimuthRadians rhumb azimuth angle (clockwise from North), in radians
 * @param pathLengthRadians   arc distance to travel, in radians
 *
 * @return LatLon location on the rhumb line.
 */
public static LatLon rhumbEndPosition(LatLon p, double rhumbAzimuthRadians, double pathLengthRadians)
{
  if (p == null)
  {
    throw new IllegalArgumentException("LatLon Is Null");
  }
  return rhumbEndPosition(p, Angle.fromRadians(rhumbAzimuthRadians), Angle.fromRadians(pathLengthRadians));
}

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

/**
 * Computes the location on a great circle arc with the given starting location, azimuth, and arc distance.
 *
 * @param p                         LatLon of the starting location
 * @param greatCircleAzimuthRadians great circle azimuth angle (clockwise from North), in radians
 * @param pathLengthRadians         arc distance to travel, in radians
 *
 * @return LatLon location on the great circle arc.
 */
public static LatLon greatCircleEndPosition(LatLon p, double greatCircleAzimuthRadians, double pathLengthRadians)
{
  if (p == null)
  {
    throw new IllegalArgumentException("Lat Lon Is Null");
  }
  return greatCircleEndPosition(p,
    Angle.fromRadians(greatCircleAzimuthRadians), Angle.fromRadians(pathLengthRadians));
}

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

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

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

public final Angle getAngle()
{
  double w = this.w;
  double length = this.getLength();
  if (!isZero(length) && (length != 1.0))
    w /= length;
  double radians = 2.0 * Math.acos(w);
  if (Double.isNaN(radians))
    return null;
  return Angle.fromRadians(radians);
}

相关文章