Introduction
Here is the source code for Main.java
Source
//package com.java2s;
public class Main {
/**
* Same as toX, but converts to Y component, assuming positive Y is down.
*
* @param angle
* @return
*/
public static double toY(int angle) {
return Math.sin(Math.toRadians(angle - 90));
}
}