Hi,
currently i try to convert this java code:
to
What is the b4x function for java Math.toDegrees and is the rest of my conversion ok?
currently i try to convert this java code:
B4X:
static double tile2lat(int y, int z) {
double n = Math.PI - (2.0 * Math.PI * y) / Math.pow(2.0, z);
return Math.toDegrees(Math.atan(Math.sinh(n)));
}
to
B4X:
Sub tile2lat(y As Int,z As Int)
Dim n As Double =cPI-(2.0*cPI*y) / Power(2.0,z)
Return ToDegrees(ATan(ASin(n)))
End Sub
What is the b4x function for java Math.toDegrees and is the rest of my conversion ok?