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 {
    static float getQuadTargetPoint(float startPoint, float endPoint, float bezierPoint, float t) {
        return (float) (bezierPoint - (Math.pow(1.f - t, 2.f) * startPoint + Math.pow(t, 2.f) * endPoint))
                / (2.f * t * (1.f - t));
    }
}