Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
//License from project: Open Source License 

public class Main {
    private static float getProjX(double angle, float cx, float cy, double radius) {
        return getX(angle, radius) + cx;
    }

    private static float getX(double angle, double radius) {
        return (float) (Math.cos(angle + Math.PI / 2) * radius);
    }
}