angcyo

https://github.com/angcyo

https://github.com/angcyo/UIKit

https://github.com/angcyo/RHttpServer

https://github.com/angcyo/RLib 

https://github.com/angcyo/RRealm

build.gradle

apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'

implementation 'com.squareup.okhttp3:okhttp:3.14.0'
implementation 'com.squareup.okio:okio:2.0.0'
implementation 'io.reactivex:rxandroid:1.2.1'
implementation 'com.google.code.gson:gson:2.8.5'
implementation('com.squareup.retrofit2:retrofit:2.5.0') {
exclude module: 'okhttp'
}
implementation 'com.squareup.retrofit2:converter-gson:2.5.0'
implementation 'com.squareup.retrofit2:adapter-rxjava:2.5.0'
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
H.kt
return Http.builder(Http.defaultOkHttpClient("网络请求"

计算角度

public static void main(String[] args) {

double a = 200;
double b = 274.34;
double s1 = Math.sqrt(2) * (b + 0.221);
double s2 = 2 * (a + 0.22173) - Math.sqrt(2) * (b + 0.221);
double s3 = toDouble(txfloat(s1, s2));
double s4 = toDouble(txfloat(Math.PI, 180));
double s5 = Math.atan(s3);
double degrees = s4 * s5 - 90;
System.out.println("degrees=" + degrees);
}

原文地址:https://www.cnblogs.com/baiyi168/p/10910553.html