|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthmi.math.Bezier1f
public class Bezier1f
| Field Summary | |
|---|---|
private static float |
EPS
|
private float |
high
|
private org.slf4j.Logger |
logger
|
private float |
low
|
private int |
np
|
private int |
nseg
|
private float[] |
p
A Bezier curve is specified by 3n+1 points, alternatiing interpolated points P and (non-interpolated) control points C, like: P C C P C C P C C P Internally we complement this by an extra conrol point at the begin and the end of this seqiuence: C P C C P C C P C C P C in order to facilitate concatenation of Bezier curves. |
| Constructor Summary | |
|---|---|
Bezier1f(float[] points)
Create a new Bezier1f curve, by specyfying interpolated values and control points in a single array. |
|
Bezier1f(float[] points,
int offset,
int stride)
Create a new Bezier1f curve, by specyfying interpolated values and control points in a single array, where the first value is found at points[offset], and where values are separated by a distance equal to stride. |
|
| Method Summary | |
|---|---|
float |
eval(float u)
Evaluates the Bezier curve for parameter value u |
protected float |
eval4(int i,
float b0,
float b1,
float b2,
float b3)
|
float |
evalInverse(float x)
Asssuming that our Bezier curve is an invertible function x = f(u) evalInverse returns u = f^{-1}(x) |
void |
setRange(float ulow,
float uhigh)
Sets the interpolation range for the eval method: for an u value low we are at the first point, for u= high we are at the last point. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private org.slf4j.Logger logger
private float[] p
private int np
private int nseg
private float low
private float high
private static final float EPS
| Constructor Detail |
|---|
public Bezier1f(float[] points)
public Bezier1f(float[] points,
int offset,
int stride)
| Method Detail |
|---|
public void setRange(float ulow,
float uhigh)
public String toString()
toString in class Objectpublic float eval(float u)
protected float eval4(int i,
float b0,
float b1,
float b2,
float b3)
public float evalInverse(float x)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||