2

Hi all, I'd like to implement a formula to calculate the distance between two point on the globe. The formula I have but I can't find how to use Sine and Cosine functions in a microflow. Is this possible or do I have to use another method? John

asked

John Landheer

2 answers

1

John,

This can be solved by creating a java action that returns the result from the formula you're using and then call this java action from within the microflow, because as far as I know there is no sine and cosine function available in a microflow action.

answered

Erwin 't Hoen

0

Create a JavaAction with parameter Degree and result Float.

Put this between begin end user code

```
// BEGIN USER CODE
return Math.sin(Math.toRadians(Degrees));
// END USER CODE
```

for radians remove the toRadians

answered

Chris de Gelder