Package curve.line
Class CurvedLine
java.lang.Object
curve.line.Line
curve.line.CurvedLine
-
Field Summary
Modifier and TypeFieldDescription(package private) double
for drawing the curve, we use integer lookupsboarddouble
Bt(package private) double
for drawing the curve, we use integer lookups(package private) static boolean
debug(package private) static boolean
debug1(package private) static boolean
debugDraw(package private) static boolean
debugOverint
LUT_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) int
order(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) double
for 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 String
zz -
Constructor Summary
ConstructorDescriptionCurvedLine
(DPoint[] points, Board board, Tr t) construct a typical curveCurvedLine
(DPoint[] points, String sid, Tr t) called from interpreter -
Method Summary
Modifier and TypeMethodDescriptionvoid
delete()
deleteabstract void
drawvoid
drawControlLines
(Graphics g, Graphics2D g2, Board board) draw control linevoid
draw pointsdouble
getCurveLength
(Tr t) get Curve lengthgetEnd()
Get the last point in this curve(package private) abstract PltPoint
getPltPoint
(double t) get Plot PointgetStart()
Get the first point in this curve(package private) static void
link to Log.mesabstract String
out()
outvoid
reverse()
Reverse this curveabstract String
toString()
toStringvoid
update()
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
-