com.github.mikephil.charting.utils.Utils.getSizeOfRotatedRectangleByRadians()方法的使用及代码示例

x33g5p2x  于2022-02-01 转载在 其他  
字(6.6k)|赞(0)|评价(0)|浏览(136)

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

Utils.getSizeOfRotatedRectangleByRadians介绍

[英]Returns a recyclable FSize instance. Represents size of a rotated rectangle by radians.
[中]返回一个可回收的FSize实例。用弧度表示旋转矩形的大小。

代码示例

代码示例来源:origin: PhilJay/MPAndroidChart

/**
 * Returns a recyclable FSize instance.
 * Represents size of a rotated rectangle by degrees.
 *
 * @param rectangleSize
 * @param degrees
 * @return A Recyclable FSize instance
 */
public static FSize getSizeOfRotatedRectangleByDegrees(FSize rectangleSize, float degrees) {
  final float radians = degrees * FDEG2RAD;
  return getSizeOfRotatedRectangleByRadians(rectangleSize.width, rectangleSize.height,
      radians);
}

代码示例来源:origin: PhilJay/MPAndroidChart

/**
 * Returns a recyclable FSize instance.
 * Represents size of a rotated rectangle by radians.
 *
 * @param rectangleSize
 * @param radians
 * @return A Recyclable FSize instance
 */
public static FSize getSizeOfRotatedRectangleByRadians(FSize rectangleSize, float radians) {
  return getSizeOfRotatedRectangleByRadians(rectangleSize.width, rectangleSize.height,
      radians);
}

代码示例来源:origin: PhilJay/MPAndroidChart

/**
 * Returns a recyclable FSize instance.
 * Represents size of a rotated rectangle by degrees.
 *
 * @param rectangleWidth
 * @param rectangleHeight
 * @param degrees
 * @return A Recyclable FSize instance
 */
public static FSize getSizeOfRotatedRectangleByDegrees(float rectangleWidth, float
    rectangleHeight, float degrees) {
  final float radians = degrees * FDEG2RAD;
  return getSizeOfRotatedRectangleByRadians(rectangleWidth, rectangleHeight, radians);
}

代码示例来源:origin: com.github.PhilJay/MPAndroidChart

/**
 * Returns a recyclable FSize instance.
 * Represents size of a rotated rectangle by degrees.
 *
 * @param rectangleSize
 * @param degrees
 * @return A Recyclable FSize instance
 */
public static FSize getSizeOfRotatedRectangleByDegrees(FSize rectangleSize, float degrees) {
  final float radians = degrees * FDEG2RAD;
  return getSizeOfRotatedRectangleByRadians(rectangleSize.width, rectangleSize.height,
      radians);
}

代码示例来源:origin: com.github.PhilJay/MPAndroidChart

/**
 * Returns a recyclable FSize instance.
 * Represents size of a rotated rectangle by radians.
 *
 * @param rectangleSize
 * @param radians
 * @return A Recyclable FSize instance
 */
public static FSize getSizeOfRotatedRectangleByRadians(FSize rectangleSize, float radians) {
  return getSizeOfRotatedRectangleByRadians(rectangleSize.width, rectangleSize.height,
      radians);
}

代码示例来源:origin: xiaolongonly/Ticket-Analysis

/**
 * Returns a recyclable FSize instance.
 * Represents size of a rotated rectangle by radians.
 *
 * @param rectangleSize
 * @param radians
 * @return A Recyclable FSize instance
 */
public static FSize getSizeOfRotatedRectangleByRadians(FSize rectangleSize, float radians) {
  return getSizeOfRotatedRectangleByRadians(rectangleSize.width, rectangleSize.height,
      radians);
}

代码示例来源:origin: WenWangAndroid/ChartManager

/**
 * Returns a recyclable FSize instance.
 * Represents size of a rotated rectangle by radians.
 *
 * @param rectangleSize
 * @param radians
 * @return A Recyclable FSize instance
 */
public static FSize getSizeOfRotatedRectangleByRadians(FSize rectangleSize, float radians) {
  return getSizeOfRotatedRectangleByRadians(rectangleSize.width, rectangleSize.height,
      radians);
}

代码示例来源:origin: WallaceXiao/StockChart-MPAndroidChart

/**
 * Returns a recyclable FSize instance.
 * Represents size of a rotated rectangle by radians.
 *
 * @param rectangleSize
 * @param radians
 * @return A Recyclable FSize instance
 */
public static FSize getSizeOfRotatedRectangleByRadians(FSize rectangleSize, float radians) {
  return getSizeOfRotatedRectangleByRadians(rectangleSize.width, rectangleSize.height,
      radians);
}

代码示例来源:origin: xiaolongonly/Ticket-Analysis

/**
 * Returns a recyclable FSize instance.
 * Represents size of a rotated rectangle by degrees.
 *
 * @param rectangleWidth
 * @param rectangleHeight
 * @param degrees
 * @return A Recyclable FSize instance
 */
public static FSize getSizeOfRotatedRectangleByDegrees(float rectangleWidth, float
    rectangleHeight, float degrees) {
  final float radians = degrees * FDEG2RAD;
  return getSizeOfRotatedRectangleByRadians(rectangleWidth, rectangleHeight, radians);
}

代码示例来源:origin: WenWangAndroid/ChartManager

/**
 * Returns a recyclable FSize instance.
 * Represents size of a rotated rectangle by degrees.
 *
 * @param rectangleSize
 * @param degrees
 * @return A Recyclable FSize instance
 */
public static FSize getSizeOfRotatedRectangleByDegrees(FSize rectangleSize, float degrees) {
  final float radians = degrees * FDEG2RAD;
  return getSizeOfRotatedRectangleByRadians(rectangleSize.width, rectangleSize.height,
      radians);
}

代码示例来源:origin: WallaceXiao/StockChart-MPAndroidChart

/**
 * Returns a recyclable FSize instance.
 * Represents size of a rotated rectangle by degrees.
 *
 * @param rectangleSize
 * @param degrees
 * @return A Recyclable FSize instance
 */
public static FSize getSizeOfRotatedRectangleByDegrees(FSize rectangleSize, float degrees) {
  final float radians = degrees * FDEG2RAD;
  return getSizeOfRotatedRectangleByRadians(rectangleSize.width, rectangleSize.height,
      radians);
}

代码示例来源:origin: xiaolongonly/Ticket-Analysis

/**
 * Returns a recyclable FSize instance.
 * Represents size of a rotated rectangle by degrees.
 *
 * @param rectangleSize
 * @param degrees
 * @return A Recyclable FSize instance
 */
public static FSize getSizeOfRotatedRectangleByDegrees(FSize rectangleSize, float degrees) {
  final float radians = degrees * FDEG2RAD;
  return getSizeOfRotatedRectangleByRadians(rectangleSize.width, rectangleSize.height,
      radians);
}

代码示例来源:origin: com.github.PhilJay/MPAndroidChart

/**
 * Returns a recyclable FSize instance.
 * Represents size of a rotated rectangle by degrees.
 *
 * @param rectangleWidth
 * @param rectangleHeight
 * @param degrees
 * @return A Recyclable FSize instance
 */
public static FSize getSizeOfRotatedRectangleByDegrees(float rectangleWidth, float
    rectangleHeight, float degrees) {
  final float radians = degrees * FDEG2RAD;
  return getSizeOfRotatedRectangleByRadians(rectangleWidth, rectangleHeight, radians);
}

代码示例来源:origin: WenWangAndroid/ChartManager

/**
 * Returns a recyclable FSize instance.
 * Represents size of a rotated rectangle by degrees.
 *
 * @param rectangleWidth
 * @param rectangleHeight
 * @param degrees
 * @return A Recyclable FSize instance
 */
public static FSize getSizeOfRotatedRectangleByDegrees(float rectangleWidth, float
    rectangleHeight, float degrees) {
  final float radians = degrees * FDEG2RAD;
  return getSizeOfRotatedRectangleByRadians(rectangleWidth, rectangleHeight, radians);
}

代码示例来源:origin: WallaceXiao/StockChart-MPAndroidChart

/**
 * Returns a recyclable FSize instance.
 * Represents size of a rotated rectangle by degrees.
 *
 * @param rectangleWidth
 * @param rectangleHeight
 * @param degrees
 * @return A Recyclable FSize instance
 */
public static FSize getSizeOfRotatedRectangleByDegrees(float rectangleWidth, float
    rectangleHeight, float degrees) {
  final float radians = degrees * FDEG2RAD;
  return getSizeOfRotatedRectangleByRadians(rectangleWidth, rectangleHeight, radians);
}

相关文章