Package curve.line
Class CurvedLine
java.lang.Object
curve.line.Line
curve.line.CurvedLine
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) doublefor drawing the curve, we use integer lookupsboarddoubleBt(package private) doublefor drawing the curve, we use integer lookups(package private) static booleandebug(package private) static booleandebug1(package private) static booleandebugDraw(package private) static booleandebugOverintLUT_resolution(package private) double[]LUT for the point x/y values and t-at-x/y values(package private) double[]LUT for the point x/y values and t-at-x/y values(package private) intorder(package private) double[]LUT for the point x/y values and t-at-x/y valuesppal(package private) double[]LUT for the point x/y values and t-at-x/y values(package private) doublefor drawing the curve, we use integer lookups(package private) double[]LUT for the point x/y values and t-at-x/y values(package private) double[]LUT for the point x/y values and t-at-x/y values(package private) static Stringzz -
Constructor Summary
ConstructorsConstructorDescriptionCurvedLine(DPoint[] points, Board board, Tr t) construct a typical curveCurvedLine(DPoint[] points, String sid, Tr t) called from interpreter -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete()deleteabstract voiddrawvoiddrawControlLines(Graphics g, Graphics2D g2, Board board) draw control linevoiddraw pointsdoublegetCurveLength(Tr t) get Curve lengthgetEnd()Get the last point in this curve(package private) abstract PltPointgetPltPoint(double t) get Plot PointgetStart()Get the first point in this curve(package private) static voidlink to Log.mesabstract Stringout()outvoidreverse()Reverse this curveabstract StringtoString()toStringvoidupdate()updateMethods inherited from class curve.line.Line
addArea, clearArea, clearAreas, clearSelected, cloneLine, drawLineSegment, flipSelected, getAreas, getColourIndex, getDirty, getID, getSID, isSelected, logPoints, returnPointIndex, setColourIndex, setDirty, setSelected
-
Field Details
-
zz
zz -
debugDraw
static boolean debugDrawdebugDraw -
debug
static boolean debugdebug -
debugOver
static boolean debugOverdebugOver -
debug1
static boolean debug1debug1 -
Bt
public double BtBt -
LUT_resolution
public int LUT_resolutionLUT_resolution -
order
int orderorder -
x_values
double[] x_valuesLUT for the point x/y values and t-at-x/y values -
y_values
double[] y_valuesLUT for the point x/y values and t-at-x/y values -
LUT_x
double[] LUT_xLUT for the point x/y values and t-at-x/y values -
LUT_y
double[] LUT_yLUT for the point x/y values and t-at-x/y values -
ratios
double[] ratiosLUT for the point x/y values and t-at-x/y values -
originalInterval
double[] originalIntervalLUT for the point x/y values and t-at-x/y values -
span_t
double span_tfor drawing the curve, we use integer lookups
int[] draw_x = new int[LUT_resolution],
draw_y = new int[LUT_resolution];
-
curveLength
double curveLengthfor drawing the curve, we use integer lookups
int[] draw_x = new int[LUT_resolution],
draw_y = new int[LUT_resolution];
-
bias
double biasfor drawing the curve, we use integer lookups
int[] draw_x = new int[LUT_resolution],
draw_y = new int[LUT_resolution];
-
ppal
-
board
board
-
-
Constructor Details
-
CurvedLine
-
CurvedLine
-
-
Method Details
-
log
-
update
-
getPltPoint
-
getStart
-
getEnd
-
reverse
public void reverse()Reverse this curve -
getCurveLength
get Curve length- Parameters:
t- -- Returns:
- the approx arc length for this curve.
-
draw
-
drawControlLines
draw control line- Parameters:
g- -g2- -board- -
-
drawPoints
-
delete
-
toString
-
out
-