File |
Line |
org/jcurl/core/impl/CurveManager.java |
183
|
org/jcurl/core/impl/StoredTrajectorySet.java |
64
|
final R1RNFunction c = store.getCurve(i);
double x = c.at(currentTime, 0, 0);
double y = c.at(currentTime, 0, 1);
double a = c.at(currentTime, 0, 2);
cp.getRock(i).setLocation(x, y, a);
x = c.at(currentTime, 1, 0);
y = c.at(currentTime, 1, 1);
a = c.at(currentTime, 1, 2);
cv.getRock(i).setLocation(x, y, a);
}
}
@Override
public boolean equals(final Object obj) {
return false;
}
public Map<CharSequence, CharSequence> getAnnotations() {
return annotations;
}
public RockSet<Pos> getCurrentPos() {
|
File |
Line |
org/jcurl/math/ShaperUtils.java |
103
|
org/jcurl/math/ShaperUtils.java |
434
|
static final void quadTo(final R1RNFunction f, final double tmin,
final double tmax, final GeneralPath gp, final float zoom) {
final double eps = 1e-6;
// first control point (startpoint). The same as gp.getCurrentPoint()
final double k0_0 = f.at(tmin, 0, 0);
final double k0_1 = f.at(tmin, 0, 1);
// startpoint velocity
double v0_0 = f.at(tmin, 1, 0);
double v0_1 = f.at(tmin, 1, 1);
if (v0_0 * v0_0 + v0_1 * v0_1 < eps) {
v0_0 = f.at(tmin + eps, 1, 0);
v0_1 = f.at(tmin + eps, 1, 1);
}
|