sdr 0.21

net.cscott.sdr.util
Class Bezier

java.lang.Object
  extended by net.cscott.sdr.util.Bezier

public class Bezier
extends Object

Utility methods for efficiently evaluating bezier curves.


Method Summary
static float cubicDeriv(float p0, float p1, float p2, float p3, float t)
          Evaluate the derivative of a cubic bezier with the given four control points.
static float cubicInterp(float p0, float p1, float p2, float p3, float t)
          Evaluate a cubic bezier with the given four control points.
static float quadInterp(float p0, float p1, float p2, float t)
          Evaluate a quadratic bezier with the given three control points.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

cubicInterp

public static float cubicInterp(float p0,
                                float p1,
                                float p2,
                                float p3,
                                float t)
Evaluate a cubic bezier with the given four control points. The time argument should be between 0 and 1, inclusive.


cubicDeriv

public static float cubicDeriv(float p0,
                               float p1,
                               float p2,
                               float p3,
                               float t)
Evaluate the derivative of a cubic bezier with the given four control points.


quadInterp

public static float quadInterp(float p0,
                               float p1,
                               float p2,
                               float t)
Evaluate a quadratic bezier with the given three control points. The time argument should be between 0 and 1, inclusive.


sdr 0.21

Copyright (c) 2006 C. Scott Ananian