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